REVIEWED: Shaders formating to follow raylib code conventions
This commit is contained in:
parent
8dae39fbda
commit
9b598f6bcf
1 changed files with 806 additions and 806 deletions
|
|
@ -16,9 +16,9 @@ void main()
|
|||
float period = vertexPosition.z;
|
||||
|
||||
// Calculate final vertex position (jiggle it around a bit horizontally)
|
||||
pos += vec2(100, 0) * sin(period * currentTime);
|
||||
gl_Position = mvp * vec4(pos, 0.0, 1.0);
|
||||
pos += vec2(100, 0)*sin(period*currentTime);
|
||||
gl_Position = mvp*vec4(pos, 0.0, 1.0);
|
||||
|
||||
// Calculate the screen space size of this particle (also vary it over time)
|
||||
gl_PointSize = 10 - 5 * abs(sin(period * currentTime));
|
||||
gl_PointSize = 10 - 5*abs(sin(period*currentTime));
|
||||
}
|
||||
Loading…
Reference in a new issue