This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// vertex shader: | |
#version 100 | |
precision mediump float; | |
attribute vec3 Position; | |
attribute vec3 Normal; | |
varying vec3 nor; | |
varying vec3 pos; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 300 es | |
precision mediump float; | |
struct MyStruct | |
{ | |
vec4 v1; | |
vec4 v2; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 300 es | |
precision mediump float; | |
uniform sampler2D mySamplers[2]; | |
in vec2 texCoord; | |
out vec4 outColor; | |
void main() { |