shaders

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: BSD-2-Clause Imports: 0 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL