1.8.0 breaks FFP vertex attributes in GLSL shaders

Bug #912674 reported by Josh Enes
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Panda3D
Fix Released
High
rdb

Bug Description

Panda3D 1.8.0 breaks gl_Vertex, gl_Normal, gl_MultiTexCoord0, etc. Related thread:
https://www.panda3d.org/forums/viewtopic.php?p=88114#88114

###Example Code:
from panda3d.core import *
from direct.showbase.ShowBase import ShowBase

vshader = """//GLSL
#version 120
#extension GL_ARB_compatibility : enable

void main() {
  gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}
"""

fshader = """//GLSL
#version 120
#extension GL_ARB_compatibility : enable

void main() {
  gl_FragColor = vec4(1.0, 0.5, 1.0, 0.5);
}
"""

class Game(ShowBase):
    def __init__(self):
        """Get the game ready to play."""
        ShowBase.__init__(self)
        self.model = self.loader.loadModel('smiley')
        self.model.reparentTo(render)
        self.shader = Shader.make(Shader.SLGLSL, vshader, fshader)
        self.model.setShader(self.shader)

game = Game()
game.run()

Revision history for this message
Josh Enes (joshenes) wrote :

The error message appears to have been a separate issue which is now fixed.

I have tried building with and without eigen and objects with GLSL shader applied are still not rendering at all.
Does the 16 byte alignment still happen if eigen is not enabled? Perhaps some differently formatted numbers are being passed to the shader than were before?

rdb (rdb)
Changed in panda3d:
assignee: nobody → rdb (rdb)
importance: Undecided → High
milestone: none → 1.8.1
status: New → Triaged
summary: - glsl shaders broken, "invalid operation"
+ 1.8.0 breaks FFP vertex attributes in GLSL shaders
description: updated
description: updated
rdb (rdb)
Changed in panda3d:
status: Triaged → Fix Committed
rdb (rdb)
Changed in panda3d:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.