sp614x / optifine

1.77k stars 420 forks source link

[Bug] Can't access elements of custom vectors #7577

Open GoldenThumbs opened 7 months ago

GoldenThumbs commented 7 months ago

Description of Issue

I cannot access individual elements of vector-type custom uniforms or variables.

Steps to Reproduce

  1. create a new vector variable or uniform in shaders/shaders.properties (vec2, vec3, vec4)
  2. try to access an individual element of said vector (.x, .y, .z, .w) in another variable or uniform
  3. the variable or uniform trying to access the element of the original variable/uniform will be empty

OptiFine Version

OptiFine HD U I5

Installation Method

Installed through the installer

Additional Information

Also using ATLauncher. While this not a mod, I felt it might be relevant to at least mention. It also has a console window that prints debug information, here's along the lines of what prints to it when I try accessing the elements .x, .y, .z, .w of any custom variables or uniforms

[Render thread/WARN] [Shaders] net.optifine.expr.ParseException: Model variable not found: c_screen_info.z