Cleanup: glsl style

This commit is contained in:
Campbell Barton
2016-05-26 18:46:12 +10:00
parent fe766d9c7a
commit 7424ded9c7
12 changed files with 486 additions and 480 deletions

View File

@@ -38,7 +38,7 @@ float read_curve_mapping(int table, int index)
* But is it actually correct to subtract 1 here?
*/
float texture_index = float(index) / float(curve_mapping_lut_size - 1);
return texture1D(curve_mapping_texture, texture_index) [table];
return texture1D(curve_mapping_texture, texture_index)[table];
}
float curvemap_calc_extend(int table, float x, vec2 first, vec2 last)