A downloadable asset pack

Download NowName your own price

Note: This game asset is only compatible with Unity's URP pipeline.





The demo includes a demonstration scene and several prefabs, showing how to use a hollow cone to fake volumetric light.

Important Assets

  • Flashlight/Model/Open Cylinder.fbx
    A cone-shaped model with a cap and base, 1 meter in height, used to fake volumetric light.
  • Flashlight/Materials/ShaderGraph/FakeVolumetric.shadergraph
    A simple shader graph for controlling the "fake" volumetric light material effect. After creating a material from it and assigning it to the hollow cone model, you can adjust the model's Z scale to change the beam length, and tweak the following material properties:
    • MainTex (Texture2D): Can be left empty, but it is recommended to use a gradient light texture (a suitable one is included in the asset).
    • Range (float): Controls the size of the small end of the hollow cone. There is no specific unit; adjust according to the visual result.
    • Alpha (float): Overall transparency.
    • Density (float): Controls the attenuation of transparency.
  • Flashlight/Materials/UnityLit_FakeVolumetric.mat
    This is a Unity Unlit material, set to Transparent, Additive blending mode, and Two-sided rendering. Drag a light gradient image into the BaseMap slot, then assign this material to the hollow cone model to create fake volumetric light.

Additional Components

  • A simple player controller: SimpleCharacterController.
  • A flashlight controller script: Flashlight.cs. Press the middle mouse button to toggle it on/off, and scroll the mouse wheel to adjust the light focus. For more details, refer to my other asset: Flashlight.

Download

Download NowName your own price

Click download now to get access to the following files:

Flashlight.zip 718 kB

Leave a comment

Log in with itch.io to leave a comment.