Null-MC / Shrimple

A simple Minecraft Java shader that attempts to maintain the vanilla aesthetic while adding optional shadows & colored lighting.
Other
117 stars 6 forks source link

initializer of const variable `worldSunColor' must be a constant expression #55

Closed PhilipRoman closed 3 months ago

PhilipRoman commented 6 months ago
begin1.csh: begin1.csh: 0:441(28): error: initializer of const variable `worldSunColor' must be a constant expression
0:442(32): error: initializer of const variable `worldHorizonColor' must be a constant expression
0:443(29): error: initializer of const variable `worldMoonColor' must be a constant expression

Not familiar with shaders but I guess RGBToLinear is not considered a built in function and so according to https://www.khronos.org/opengl/wiki/Core_Language_(GLSL)#Constant_expression cannot be used to initialize a const variable

null511 commented 6 months ago

I'll fix it; usually that's fine but I'm guessing you have an AMD card, which is really picky about const.