Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Vertex Shaders
#1
I'm trying to do a bit of optimisation by moving per frame constanst into the vertex shader but having some issues. Is it possible to have the default vertex shader (and is attributes) posted in the manual?
Reply
#2
(11-22-2025, 02:01 PM)TheSandbag Wrote: I'm trying to do a bit of optimisation by moving per frame constanst into the vertex shader but having some issues. Is it possible to have the default vertex shader (and is attributes) posted in the manual?

I will post the original vertex shader later on.
You can also use your own vertex shader. Just use the same filename with .vert and it will be used automatically.
PLEASE use the search function if something have been asked or discussed before.
Every (unnessesary) forum support means less time to develop! But of course, i am here to help!  Smile
Reply
#3
So I was mostly wanting to know what the inbound attributes where to the vertex shader otherwise it just breaks. Figured out a_position for the vertex position so can use that to feed gl_position
Reply
#4
Code:
attribute vec2 a_position; void main() { gl_Position = vec4(a_position, 0.0, 1.0); }
PLEASE use the search function if something have been asked or discussed before.
Every (unnessesary) forum support means less time to develop! But of course, i am here to help!  Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)