Skip to content

Commit

Permalink
revert shaders to version 120
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFlt committed Apr 24, 2024
1 parent 1953020 commit 186cf90
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/ar/src/panda3d-simulator/vpPanda3DGeometryRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
#include <visp3/ar/vpPanda3DGeometryRenderer.h>

const char *vpPanda3DGeometryRenderer::SHADER_VERT_NORMAL_AND_DEPTH_CAMERA = R"shader(
#version 140
#version 120
in vec3 p3d_Normal;
in vec3 p3d_Vertex;
attribute vec3 p3d_Normal;
attribute vec3 p3d_Vertex;
varying vec3 oNormal;
uniform mat3 p3d_NormalMatrix;
Expand All @@ -62,9 +62,9 @@ void main()

const char *vpPanda3DGeometryRenderer::SHADER_VERT_NORMAL_AND_DEPTH_WORLD = R"shader(
#version 140
in vec3 p3d_Normal;
in vec3 p3d_Vertex;
#version 120
attribute vec3 p3d_Normal;
attribute vec3 p3d_Vertex;
uniform mat4 p3d_ModelViewMatrix;
varying vec3 oNormal;
varying float distToCamera;
Expand Down

0 comments on commit 186cf90

Please sign in to comment.