Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
|
#include <shader.h>
Public Member Functions | |
ShaderProgram_t | MakeShader () |
AssetType | GetAssetType () override |
Public Member Functions inherited from cqsp::asset::Asset | |
virtual | ~Asset ()=default |
Public Attributes | |
std::string | vert |
Code for vertex shader. More... | |
std::string | frag |
Code for fragment shader. More... | |
std::string | geometry |
Code for geometry file. More... | |
Hjson::Value | uniforms |
Public Attributes inherited from cqsp::asset::Asset | |
std::string | path |
int | accessed = 0 |
A shader definiton file.
A shader defintion is a way to simplify the creation of shader objects.
A shader definiton file is loaded in hjson, and follows this format:
For uniforms, the shader will read the types of uniforms in the shader, and use them.
Matrices are not supported yet
|
inlineoverridevirtual |
Implements cqsp::asset::Asset.
cqsp::asset::ShaderProgram_t cqsp::asset::ShaderDefinition::MakeShader | ( | ) |
std::string cqsp::asset::ShaderDefinition::frag |
Code for fragment shader.
std::string cqsp::asset::ShaderDefinition::geometry |
Code for geometry file.
Hjson::Value cqsp::asset::ShaderDefinition::uniforms |
std::string cqsp::asset::ShaderDefinition::vert |
Code for vertex shader.