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
If we convert a shader for es3 that contains int type attribute and varying to a shader for es1, we need a technique. This is because the es1 shader does not support int type attribute and varying variables.
An idea is to specify an attribute and varying as float types, and cast the values to int types, as shown below.
in float a_test;
int getTestAttr() {
return int(a_test);
}
In this case, it may not be possible to get a large integer due to the precision of the float type, so the shader translator needs to output a warning to the console or file.
The text was updated successfully, but these errors were encountered:
KaYaF
changed the title
support int type attribute/varying translation from es3 to es1
Support int type attribute/varying translation from es3 to es1
Sep 9, 2021
If we convert a shader for es3 that contains int type attribute and varying to a shader for es1, we need a technique. This is because the es1 shader does not support int type attribute and varying variables.
An idea is to specify an attribute and varying as float types, and cast the values to int types, as shown below.
In this case, it may not be possible to get a large integer due to the precision of the float type, so the shader translator needs to output a warning to the console or file.
The text was updated successfully, but these errors were encountered: