You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem with the first statement is that the third parameter of SetUniform1 is declared as float, so if an int value is passed,
it is typecasted to float before the call to gl.Uniform1.
The text was updated successfully, but these errors were encountered:
This statement does not change the integer uniform:
This one works orrectly:
The problem with the first statement is that the third parameter of
SetUniform1
is declared asfloat
, so if anint
value is passed,it is typecasted to float before the call to
gl.Uniform1
.The text was updated successfully, but these errors were encountered: