Error messages showing wrong line numbers

I am working on a shader, and I got the following error message
composite.fsh: composite.fsh: 0(204) : error C1038: declaration of "sunLight" conflicts with previous declaration at 0(167)
0(204) : error C7623: implicit narrowing of type from "vec3" to "float"
0(211) : error C1115: unable to find compatible overloaded function "mix(vec3, float, float)"
composite.fsh: composite.fsh: 0(204) : error C1038: declaration of "sunLight" conflicts with previous declaration at 0(167)
0(204) : error C7623: implicit narrowing of type from "vec3" to "float"
0(211) : error C1115: unable to find compatible overloaded function "mix(vec3, float, float)"
But the error is somewhere after line 300, and there is nothing that could cause the error in the lines from the error message.
No description
3 Replies
Bestsoft100
Bestsoft100OP14mo ago
This is what OptiFine in 1.12 tells me
0(317) : error C1038: declaration of "sunLight" conflicts with previous declaration at 0(247)
0(317) : error C7623: implicit narrowing of type from "vec3" to "float"
0(329) : error C1115: unable to find compatible overloaded function "mix(vec3, float, float)"
(0) : error C2003: incompatible options for link
0(317) : error C1038: declaration of "sunLight" conflicts with previous declaration at 0(247)
0(317) : error C7623: implicit narrowing of type from "vec3" to "float"
0(329) : error C1115: unable to find compatible overloaded function "mix(vec3, float, float)"
(0) : error C2003: incompatible options for link
kristal (she) | pegasys
I think you might get more help in shader labs
Mithos
Mithos14mo ago
iris' patcher currently doesn't prevent line numbers. Iirc there's a jvm flag you can use to make iris dump the patched shaders so you can see the file that's actually loaded and for which the line numbers are correct
Want results from more Discord servers?
Add your server