@@ -40,8 +42,20 @@ public class CustomShaderOptions {
*/
@JsProperty
publicbooleanisTranslucent;
// uniforms Object.<String, UniformSpecifier> optional A dictionary for user-defined uniforms. The key is the uniform name that will appear in the GLSL code. The value is an object that describes the uniform type and initial value
// varyings Object.<String, VaryingType> optional A dictionary for declaring additional GLSL varyings used in the shader. The key is the varying name that will appear in the GLSL code. The value is the data type of the varying. For each varying, the declaration will be added to the top of the shader automatically. The caller is responsible for assigning a value in the vertex shader and using the value in the fragment shader.
/**
* A dictionary for user-defined uniforms. The key is the uniform name that will appear in the GLSL code.
* The value is an object that describes the uniform type and initial value
*/
@JsProperty
publicJsObjectuniforms;
/**
* A dictionary for declaring additional GLSL varyings used in the shader. The key is the varying name that will
* appear in the GLSL code. The value is the data type of the varying. For each varying, the declaration will be
* added to the top of the shader automatically. The caller is responsible for assigning a value in the vertex
* shader and using the value in the fragment shader.
*/
@JsProperty
publicJsObjectvaryings;
/**
* The custom vertex shader as a string of GLSL code. It must include a GLSL function called vertexMain. See the
* example for the expected signature. If not specified, the custom vertex shader step will be skipped in
@@ -59,4 +73,58 @@ public class CustomShaderOptions {