/myBeam

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

Primary LanguageHLSLThe UnlicenseUnlicense

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