Initial commit
This commit is contained in:
28
engines/hpl1/engine/impl/shaders/hpl1_refract.vertex
Normal file
28
engines/hpl1/engine/impl/shaders/hpl1_refract.vertex
Normal file
@@ -0,0 +1,28 @@
|
||||
// Copyright 2006-2010 (C) - Frictional Games
|
||||
//
|
||||
// This file is part of HPL1 Engine
|
||||
//
|
||||
// For conditions of distribution and use, see copyright notice in LICENSE-shaders
|
||||
//
|
||||
|
||||
///////////////////////////////////////////////////////
|
||||
/// REFRACTION VERTEX PROGRAM ////////////
|
||||
///////////////////////////////////////////////////////
|
||||
|
||||
vec4 position = gl_Vertex;
|
||||
vec4 color = gl_Color;
|
||||
vec2 uv = gl_MultiTexCoord0.xy;
|
||||
|
||||
out vec4 vColor;
|
||||
out vec2 vUv;
|
||||
|
||||
uniform mat4 worldViewProj;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = (worldViewProj * position);
|
||||
|
||||
vColor = clamp(color, vec4(0.0), vec4(1.0));
|
||||
|
||||
vUv = uv;
|
||||
}
|
||||
Reference in New Issue
Block a user