[SOLVED] CS代考计算机代写 // Pass 3 vertex shader

30 $

File Name: CS代考计算机代写_//_Pass_3_vertex_shader.zip
File Size: 442.74 KB

SKU: 4204658608 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


// Pass 3 vertex shader
//
// Generate texture coordinates from raw vertex position.The vertex
// position is in [-1,1]x[-1,1] and is mapped to [0,1]x[0,1].

#version 300 es

layout (location = 0) in mediump vec3 vertPosition;

out mediump vec2 texCoords;

void main()

{
gl_Position = vec4( vertPosition, 1.0 );

// Calculate the texture coordinates at this vertex.X and Y vertex
// coordinates are in the range [-1,1] in the window.You have to
// map this to the range [0,1] of texture coordinates.

texCoords = vec2( 0.0, 0.0 ); // YOUR CODE HERE (identical to pass2.vert)
}

Reviews

There are no reviews yet.

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

Shopping Cart
[SOLVED] CS代考计算机代写 // Pass 3 vertex shader
30 $