Shaders are written in GLSL, but there are different versions of GLSL that it might be written in.
Calling this method on a p5.Shader will return the GLSL version it uses, either 100 es or 300 es. WebGL 1 shaders will only use 100 es, and WebGL 2 shaders may use either.
Ejemplos
Sintaxis
version()
Parámetros
Returns
String: The GLSL version used by the shader.
Notice any errors or typos? Please let us know. Please feel free to edit src/webgl/p5.Shader.js and open a pull request!
Referencias Relacionadas
ambientMaterial
Establece el color ambiental del material de la superficie de las formas.
createFilterShader
Crea un objeto p5.Shader para ser utilizado con la función filter().
createShader
Crea un nuevo objeto p5.Shader.
emissiveMaterial
Establece el color de emisión del material de la superficie de las formas.