From d1f11243024bd79a24db9d22531aac0ba021237e Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 10 Oct 2024 01:59:05 +0800 Subject: [PATCH] updated SceneNodeAttributes.h --- inc/hgl/graph/SceneNodeAttributes.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/inc/hgl/graph/SceneNodeAttributes.h b/inc/hgl/graph/SceneNodeAttributes.h index e9ec53c9..c617fe71 100644 --- a/inc/hgl/graph/SceneNodeAttributes.h +++ b/inc/hgl/graph/SceneNodeAttributes.h @@ -1,5 +1,6 @@ #pragma once #include +#include namespace hgl { @@ -34,8 +35,14 @@ namespace hgl { uint visible:1; ///<是否可见 + uint render_color:1; ///<渲染颜色 + uint render_normal:1; ///<渲染法线 + uint render_depth:1; ///<渲染深度 + + uint render_at_reflect:1; ///<在反射时渲染 + uint cast_shadow:1; ///<投射阴影 - uint cast_static_shadow:1; ///<投射静态阴影(预计算阴景) + uint cast_static_shadow:1; ///<投射静态阴影(预计算阴影) uint cast_dynamic_shadow:1; ///<投射动态阴影 uint receive_static_shadow:1; ///<接收静态阴影 @@ -43,6 +50,10 @@ namespace hgl uint receive_static_light:1; ///<接收静态光照 uint receive_dynamic_light:1; ///<接收动态光照 + + ObjectDynamicShadowPolicy dynamic_shadow_policy:8; ///<动态阴影策略 + +// uint8 light_channels; ///<接收的光通道 }; constexpr const size_t SceneNodeVisualAttributesBytes=sizeof(SceneNodeVisualAttributes);