projects
/
andemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
windows build with msvc2022
[andemo]
/
sdr
/
foo.v.glsl
diff --git
a/sdr/foo.v.glsl
b/sdr/foo.v.glsl
index
682c177
..
1e8d9b6
100644
(file)
--- a/
sdr/foo.v.glsl
+++ b/
sdr/foo.v.glsl
@@
-1,10
+1,12
@@
-attribute vec4 attr_vertex;
+attribute vec4 attr_vertex, attr_color;
attribute vec2 attr_texcoord;
attribute vec2 attr_texcoord;
+varying vec4 color;
varying vec2 texcoord;
void main()
{
gl_Position = attr_vertex;
texcoord = attr_texcoord;
varying vec2 texcoord;
void main()
{
gl_Position = attr_vertex;
texcoord = attr_texcoord;
+ color = attr_color;
}
}