Make example ready to copy and paste
Browse files at this commit2552b129c4f40a49eba2e616ebc1c4c561e26871Parent: d96a66d- refactor
- make example ready to copy and paste
1 changed file +2 -2
wiki/examples/close_custom_shader.fragmodified+2 -2
| @@ -105,7 +105,7 @@ vec4 default_close(vec3 coords_geo, vec3 size_geo) { | |||
| 105 | return color; | 105 | return color; |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | -// Example: make the window "fall down" with slight rotation. | 108 | +// Example: make the window 'fall down' with slight rotation. |
| 109 | vec4 fall_and_rotate(vec3 coords_geo, vec3 size_geo) { | 109 | vec4 fall_and_rotate(vec3 coords_geo, vec3 size_geo) { |
| 110 | // For this shader, set animation curve to linear for best results. | 110 | // For this shader, set animation curve to linear for best results. |
| 111 | 111 | ||
| @@ -142,6 +142,6 @@ vec4 fall_and_rotate(vec3 coords_geo, vec3 size_geo) { | |||
| 142 | // This is the function that you must define. | 142 | // This is the function that you must define. |
| 143 | vec4 close_color(vec3 coords_geo, vec3 size_geo) { | 143 | vec4 close_color(vec3 coords_geo, vec3 size_geo) { |
| 144 | // You can pick one of the example functions or write your own. | 144 | // You can pick one of the example functions or write your own. |
| 145 | - return rotate_and_fall_down(coords_geo, size_geo); | 145 | + return fall_and_rotate(coords_geo, size_geo); |
| 146 | } | 146 | } |
| 147 | 147 | ||