glsl-canvas | shadertoy |
---|---|
texture2D( | texture( |
void main(void) | void mainImage( out vec4 fragColor, in vec2 fragCoord ) |
gl_FragColor | fragColor |
gl_FragCoord | fragCoord |
#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 u_resolution;
uniform float u_time;
uniform sampler2D u_texture_0;
precision highp float;
uniform vec2 resolution;
uniform float time;
uniform sampler2D backbuffer;
定義部分、移植の際には「u_」の部分に注意