Fix: Eevee: Float Curve node causes issues with compiled shader
This fixes a regression from rBa0edee712a79239133ff840f911f6416d4c41855. Issue being the curve map not being initialized in the GPU shader function. Fixes T95221
This commit is contained in:
parent
90a23dec46
commit
1405787142
Notes:
blender-bot
2023-02-14 09:36:46 +01:00
Referenced by commit81ee46da1a
, Fix: Unutilized curve mapping in vector shader node Referenced by commit716d8436f0
, Fix: Unutilized curve mapping in vector shader node Referenced by issue #95221, Eevee: Float Curve node causes issues with compiled shader
|
@ -344,6 +344,7 @@ static int gpu_shader_curve_float(GPUMaterial *mat,
|
|||
|
||||
CurveMapping *cumap = (CurveMapping *)node->storage;
|
||||
|
||||
BKE_curvemapping_init(cumap);
|
||||
BKE_curvemapping_table_F(cumap, &array, &size);
|
||||
GPUNodeLink *tex = GPU_color_band(mat, size, array, &layer);
|
||||
|
||||
|
|
Loading…
Reference in New Issue