Next
This example shows how vertex attributes can be visualized.
Material
[
Material 1
] [
Material 2
] [
Material 3
]
Set color of current material
[
Red
] [
Green
] [
Blue
]
Test recompile shader
[
Use normal shader
] [
Use bright shader
]
Output
Show data
attribute vec3 vertex; uniform vec3 uColor; varying vec3 color; void main(void) { gl_Position = vec4(vertex, 1.0); color = uColor; }
#ifdef GL_ES precision highp float; #endif varying vec3 color; void main(void) { gl_FragColor = vec4(color.x, color.y, color.z, 1.0); }
#ifdef GL_ES precision highp float; #endif varying vec3 color; void main(void) { gl_FragColor = vec4(color.x+0.5, color.y+0.5, color.z+0.5, 1.0); }