Initial commit of ResInsight version 0.4.8

This commit is contained in:
Alf B. Rustad
2012-05-18 09:45:23 +02:00
parent a680bf941e
commit dfe97efb1b
657 changed files with 176690 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
uniform mat4 cvfu_modelViewMatrix;
uniform mat4 u_lightViewProjectionMatrix;
attribute vec4 cvfa_vertex;
varying vec4 v_shadowCoord;
#define CVF_CALC_SHADOW_COORD_IMPL
//--------------------------------------------------------------------------------------------------
/// Calculate shadow coord and set the v_shadowCoord varying
//--------------------------------------------------------------------------------------------------
void calcShadowCoord()
{
// Also including cvfu_modelViewMatrix (with inverse camera in lightViewProjectionMatrix) to include
// the part transformations. If not, we need to pass the Model Matrix as well
v_shadowCoord = u_lightViewProjectionMatrix*cvfu_modelViewMatrix*cvfa_vertex;
}