增加材质设计说明注释
This commit is contained in:
parent
8af5e4c746
commit
0365c37fdf
@ -10,6 +10,57 @@ namespace hgl
|
|||||||
{
|
{
|
||||||
namespace graph
|
namespace graph
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* 假设
|
||||||
|
* scene
|
||||||
|
* {
|
||||||
|
* mesh
|
||||||
|
* {
|
||||||
|
* Vertex
|
||||||
|
* TexCoordColor
|
||||||
|
* TexCoordNormal
|
||||||
|
* }
|
||||||
|
*
|
||||||
|
* texture
|
||||||
|
* {
|
||||||
|
* Color
|
||||||
|
* Normal
|
||||||
|
* }
|
||||||
|
* };
|
||||||
|
*
|
||||||
|
* 有多种材质
|
||||||
|
*
|
||||||
|
* material depth_render //只渲染深度,用于shadow maps或oq等
|
||||||
|
* {
|
||||||
|
* in_vertex_attrib
|
||||||
|
* {
|
||||||
|
* Vertex
|
||||||
|
* }
|
||||||
|
*
|
||||||
|
* in_uniform
|
||||||
|
* {
|
||||||
|
* mvp
|
||||||
|
* }
|
||||||
|
* }
|
||||||
|
*
|
||||||
|
* material normal_render
|
||||||
|
* {
|
||||||
|
* in_vertex_attrib
|
||||||
|
* {
|
||||||
|
* Vertex,
|
||||||
|
* TexCoordColor,
|
||||||
|
* TexCoordNormal,
|
||||||
|
* }
|
||||||
|
*
|
||||||
|
* in_uniform
|
||||||
|
* {
|
||||||
|
* mvp
|
||||||
|
* light
|
||||||
|
* }
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 渲染材质
|
* 渲染材质
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user