diff --git a/inc/hgl/graph/Material.h b/inc/hgl/graph/Material.h index 074e62c9..435707f3 100644 --- a/inc/hgl/graph/Material.h +++ b/inc/hgl/graph/Material.h @@ -10,6 +10,57 @@ namespace hgl { 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 + * } + * } + */ + + /** * 渲染材质 */