1 # SPDX-FileCopyrightText: 2011-2022 Blender Foundation
3 # SPDX-License-Identifier: Apache-2.0
8 class Properties(bpy
.types
.PropertyGroup
):
13 cls
.type.hydra_storm
= bpy
.props
.PointerProperty(
15 description
="Hydra Storm properties",
21 del cls
.type.hydra_storm
24 class RenderProperties(bpy
.types
.PropertyGroup
):
25 max_lights
: bpy
.props
.IntProperty(
27 description
="Limit maximum number of lights",
28 default
=16, min=0, max=16,
30 use_tiny_prim_culling
: bpy
.props
.BoolProperty(
31 name
="Tiny Prim Culling",
32 description
="Hide small geometry primitives to improve performance",
35 volume_raymarching_step_size
: bpy
.props
.FloatProperty(
36 name
="Volume Raymarching Step Size",
37 description
="Step size when raymarching volume",
40 volume_raymarching_step_size_lighting
: bpy
.props
.FloatProperty(
41 name
="Volume Raymarching Step Size Lighting",
42 description
="Step size when raymarching volume for lighting computation",
45 volume_max_texture_memory_per_field
: bpy
.props
.FloatProperty(
46 name
="Max Texture Memory Per Field",
47 description
="Maximum memory for a volume field texture in Mb (unless overridden by field prim)",
52 class SceneProperties(Properties
):
53 type = bpy
.types
.Scene
55 final
: bpy
.props
.PointerProperty(type=RenderProperties
)
56 viewport
: bpy
.props
.PointerProperty(type=RenderProperties
)
59 register
, unregister
= bpy
.utils
.register_classes_factory((