[SOLVED] CS // Dummy vertex shader

$25

File Name: CS_//_Dummy_vertex_shader.zip
File Size: 235.5 KB

5/5 - (1 vote)

// Dummy vertex shader
//
// For debugging: Just computes gl_Position and sets a colour.

#version 300 es

uniform mat4 MVP;

layout (location = 0) in mediump vec3 vertPosition;

out mediump vec3 colour;

void main()

{
gl_Position = MVP * vec4( vertPosition, 1.0 );
colour = vec3( 0.66, 0.84, 0.36 );
}

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS // Dummy vertex shader
$25