projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
framebuffer change
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
cloud.vs
diff --git
a/shaders/cloud.vs
b/shaders/cloud.vs
index 66a2bdf2a65d41089f6c7c9a01b0acee3f1e3057..580dc207c4c55a92297d104a44899679927366af 100644
(file)
--- a/
shaders/cloud.vs
+++ b/
shaders/cloud.vs
@@
-46,7
+46,7
@@
void main()
vs_motion_out( vproj0, vproj1 );
gl_Position = vproj0;
vs_motion_out( vproj0, vproj1 );
gl_Position = vproj0;
- gl_PointSize = (9.0*scaler) / (
gl_Position.z + 0.01
);
+ gl_PointSize = (9.0*scaler) / (
max( gl_Position.z, 2.0 )
);
aWorldCo = world_pos0;
aColour = a_colour*scaler*(1.0-uAnim.y*uAnim.y);
aCo = co;
aWorldCo = world_pos0;
aColour = a_colour*scaler*(1.0-uAnim.y*uAnim.y);
aCo = co;