From a7151cd7d175d554b0f45f62b7094bfd22d34332 Mon Sep 17 00:00:00 2001 From: Faraz Shaikh Date: Sat, 21 Sep 2024 23:29:49 +0400 Subject: [PATCH] Update comments --- src/maps/keywordMap.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/maps/keywordMap.ts b/src/maps/keywordMap.ts index 728d670..4dceaa7 100644 --- a/src/maps/keywordMap.ts +++ b/src/maps/keywordMap.ts @@ -1,7 +1,6 @@ export const keywordMap = { - // PBR + // PBR (frag) diffuse: "csm_DiffuseColor", // Color + alpha - normal: "csm_Normal", // Vertex Normal roughness: "csm_Roughness", // Roughness metalness: "csm_Metalness", // Metalness emissive: "csm_Emissive", // Emissive @@ -16,12 +15,13 @@ export const keywordMap = { iridescence: "csm_Iridescence", // Iridescence // Extras - pointSize: "csm_PointSize", - fragColor: "csm_FragColor", - depthAlpha: "csm_DepthAlpha", // Depth - unlitFac: "csm_UnlitFac", // Unlit factor + pointSize: "csm_PointSize", // gl_PointSize (Frag) + fragColor: "csm_FragColor", // gl_FragColor (Frag) + depthAlpha: "csm_DepthAlpha", // Depth (MeshDepthMaterial) + unlitFac: "csm_UnlitFac", // Unlit factor (mix between csm_FragColor and csm_DiffuseColor) // Vert - position: "csm_Position", - positionRaw: "csm_PositionRaw", + position: "csm_Position", // gl_Position + positionRaw: "csm_PositionRaw", // gl_Position (without projection) + normal: "csm_Normal", // Vertex Normal };