ab4daa / myBeam

given a radius 1 length 1 cylinder, do a beam effect in Urho3D

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

myBeam

Given a radius 1 length 1 cylinder, do a beam effect in Urho3D

Preview

screen

Description

Calculate d = distance between the line from camera to the pixel and the line segment in cylinder center.
Use d to sample ramp texture.

screen

About

given a radius 1 length 1 cylinder, do a beam effect in Urho3D

License:The Unlicense


Languages

Language:HLSL 100.0%