Skip to content
Timo Wiren edited this page Feb 6, 2016 · 26 revisions

Aether3D Game Engine

This is a reboot of Aether3D game engine. API Documentation: http://twiren.kapsi.fi/doc_v0.4/html/

Loading shaders

Shader shader;

shader.Load( FileSystem::FileContents( "unlit.vsh" ), FileSystem::FileContents( "unlit.fsh" ), "unlitVert", "unlitFrag", FileSystem::FileContents("unlit.hlsl"), FileSystem::FileContents( "unlit.hlsl" ) );

Shader source code is loaded from file system objects that can be filled from files, .pak files or data. Because the renderer supports OpenGL, Metal and D3D12, there are parameters for all shading languages. If you don't want to support a particular language, just provide an empty string for FileContents. In case of Metal, shaders should be put into your Xcode project and Shader::Load is given a vertex and fragment shader's name.

Clone this wiki locally