-
Notifications
You must be signed in to change notification settings - Fork 2
Shader
Carl Hewett edited this page Mar 1, 2016
·
2 revisions
A shader is a program that runs on the graphics card. Right now, the engine uses OpenGL so it only supports GLSL. Each shader program has two files: the vertex shader and the fragment shader. Their specifics can be found here. Normally, you would not even need to modify the default SDL3D shaders found the shaders directory, all you would normally need to do is to add them.
To add a shader, check out ResourceManager's addShader.
Class Shader
Get the shader's name.
- Understanding the Lua API reference
- Tutorial
- Units
- Notes
- Lua API reference
- Callbacks
- Global
- Game
- Engine
- ResourceManager
- Shader
- Texture
- TextureType
- ObjectGeometryGroup
- ObjectGeometry
- Sound
- SoundType
- GPUBuffer_uint
- GPUBuffer_vec2
- GPUBuffer_vec3
- InputManager
- KeyCode
- EntityManager
- Entity
- PhysicsBody
- PhysicsBodyType
- Camera
- Object
- TexturedObject
- ShadedObject
- Light
- GraphicsManager
- Utils
- IVec2
- Vec2
- Vec3
- Vec4