From 186cf907cc2268a70529afaa2235ece30c28c5db Mon Sep 17 00:00:00 2001 From: Samuel Felton Date: Wed, 24 Apr 2024 15:19:13 +0200 Subject: [PATCH] revert shaders to version 120 --- .../panda3d-simulator/vpPanda3DGeometryRenderer.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/ar/src/panda3d-simulator/vpPanda3DGeometryRenderer.cpp b/modules/ar/src/panda3d-simulator/vpPanda3DGeometryRenderer.cpp index 2c66339c87..3ecf5e769e 100644 --- a/modules/ar/src/panda3d-simulator/vpPanda3DGeometryRenderer.cpp +++ b/modules/ar/src/panda3d-simulator/vpPanda3DGeometryRenderer.cpp @@ -36,10 +36,10 @@ #include 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; @@ -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;