From 0365c37fdfc1f976a534de247616532de6fa6d84 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sun, 9 Dec 2018 23:39:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9D=90=E8=B4=A8=E8=AE=BE?= =?UTF-8?q?=E8=AE=A1=E8=AF=B4=E6=98=8E=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/hgl/graph/Material.h | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) 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 + * } + * } + */ + + /** * 渲染材质 */