https://github.com/mitay-walle/com.mitay-walle.scriptable-volumes
Unity Volume-system extracted from ScriptableRenderPipeline, allowing to blend any parameters, using collider-shapes + distances
https://github.com/mitay-walle/com.mitay-walle.scriptable-volumes
editor-tool simulation unity3d volume
Last synced: 8 months ago
JSON representation
Unity Volume-system extracted from ScriptableRenderPipeline, allowing to blend any parameters, using collider-shapes + distances
- Host: GitHub
- URL: https://github.com/mitay-walle/com.mitay-walle.scriptable-volumes
- Owner: mitay-walle
- License: mit
- Created: 2024-11-09T00:32:37.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-11-09T15:48:48.000Z (11 months ago)
- Last Synced: 2025-01-10T17:52:20.388Z (9 months ago)
- Topics: editor-tool, simulation, unity3d, volume
- Language: C#
- Homepage:
- Size: 71.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scriptable Volumes
Unity Volume-system extracted from ScriptableRenderPipeline, allowing to blend any parameters, using collider-shapes + distances
- Important! Odin Inspector as dependency


# Example
[Serializable]
[SupportedOnScriptableProfile(typeof(ScriptableVolumeProfile))]
public sealed class Reflections : SceneLightingComponent
{
[InlineProperty] public IntParameter reflectionBounces = new(4);
[InlineProperty] public IntParameter defaultReflectionResolution = new(4);
[InlineProperty] public EnumParameter defaultReflectionMode = new(DefaultReflectionMode.Skybox, true);
[InlineProperty] public FloatParameter reflectionIntensity = new(1, true);
[InlineProperty] public TextureParameter customReflectionTexture = new(null, true);public override void Apply(VolumeStack stack)
{
Reflections other = stack.GetComponent();if (other && other.active)
{
RenderSettings.reflectionBounces = other.reflectionBounces.value;
RenderSettings.reflectionIntensity = other.reflectionIntensity.value;
RenderSettings.customReflectionTexture = other.customReflectionTexture.value;
RenderSettings.defaultReflectionMode = other.defaultReflectionMode.value;
RenderSettings.defaultReflectionResolution = other.defaultReflectionResolution.value;
}
}
}
# Work In Progress
- Collider 2D support