Documentation
¶
Overview ¶
Package shaders contains the builtin engine shaders. Run "go generate" to create the shader .spv byte code files.
Shaders are linked directly to the engine code in a few ways:
- vu/load/shd.go expects specific names for attributes and uniform types. The shd.go code may need to be updated for new shaders.
- The order of attributes and uniforms in the shader description files (*.shd) matter and relate directly to the layout values in the shader code.
- The shader push constants block only guarantees upto 128 bytes.
PBR shaders are based on the youtube tutorial43 from:
https://github.com/emeiri/ogldev/ https://github.com/emeiri/ogldev/blob/master/Common/Shaders/lighting_new.fs https://github.com/emeiri/ogldev/blob/master/Common/Shaders/lighting_new.vs
Click to show internal directories.
Click to hide internal directories.