Fix missing STEP variable by making it mandatory to be defined as a uniform in the shader file

This commit is contained in:
ChaoticByte 2025-02-05 17:48:49 +01:00
parent 7ad9ef002a
commit cc59ba9b9e
No known key found for this signature in database
3 changed files with 16 additions and 10 deletions

View file

@ -3,6 +3,8 @@ shader_type canvas_item;
//!steps 9
//!load ./images/swamp.jpg
uniform int STEP;
const float strength = 0.01;
void fragment() {