Eevee: Add small optimisation for Curve Mapping nodes
authorClément Foucault <foucault.clem@gmail.com>
Fri, 22 Mar 2019 02:53:13 +0000 (03:53 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Fri, 22 Mar 2019 02:53:21 +0000 (03:53 +0100)
commitc49a70bcd113904b239079413e32fc1228776967
treed94b9f28d6d0cdf90aec84d0261af2cd537be3f3
parent875b50f94f993eabcd03e3c4485ba3a4b0990df8
Eevee: Add small optimisation for Curve Mapping nodes

This remove the RGB texture lookups if the curve is only used for "Luma"
correction and does not affect individual RGB channels.
source/blender/gpu/shaders/gpu_shader_material.glsl
source/blender/nodes/shader/nodes/node_shader_curves.c