Implement raytraced lightmap

This commit is contained in:
2019-01-09 23:32:10 +01:00
parent 3dde1e1083
commit 9787175b13
12 changed files with 240 additions and 28 deletions

View File

@@ -31,6 +31,7 @@ enum class kShaderUniform : uint16_t
Direction = const_hash("dir"),
UseFragCoordUV2 = const_hash("fragUV2"),
LightDir = const_hash("light_dir"),
Mode = const_hash("mode"),
};
enum class kShader : uint16_t
@@ -56,6 +57,8 @@ enum class kShader : uint16_t
BrushStroke = const_hash("brush-stroke"),
VertexColor = const_hash("vertex-color"),
Lambert = const_hash("lambert"),
LambertLightmap = const_hash("lambert-lightmap"),
BakeUV = const_hash("bakeuv"),
};
class Shader