Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/opensubdiv/shader/gpu_shader_opensubdiv_vertex.glsl')
-rw-r--r--intern/opensubdiv/shader/gpu_shader_opensubdiv_vertex.glsl18
1 files changed, 10 insertions, 8 deletions
diff --git a/intern/opensubdiv/shader/gpu_shader_opensubdiv_vertex.glsl b/intern/opensubdiv/shader/gpu_shader_opensubdiv_vertex.glsl
index 1e89a806b18..474a716e927 100644
--- a/intern/opensubdiv/shader/gpu_shader_opensubdiv_vertex.glsl
+++ b/intern/opensubdiv/shader/gpu_shader_opensubdiv_vertex.glsl
@@ -18,9 +18,9 @@
*/
struct VertexData {
- vec4 position;
- vec3 normal;
- vec2 uv;
+ vec4 position;
+ vec3 normal;
+ vec2 uv;
};
in vec3 normal;
@@ -29,12 +29,14 @@ in vec4 position;
uniform mat4 modelViewMatrix;
uniform mat3 normalMatrix;
-out block {
- VertexData v;
-} outpt;
+out block
+{
+ VertexData v;
+}
+outpt;
void main()
{
- outpt.v.position = modelViewMatrix * position;
- outpt.v.normal = normalize(normalMatrix * normal);
+ outpt.v.position = modelViewMatrix * position;
+ outpt.v.normal = normalize(normalMatrix * normal);
}