-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
move cursor decals to shader #538
base: main
Are you sure you want to change the base?
Conversation
Great!
|
src/shaders/editor_functions.glsl
Outdated
// Blend in decal; reduce opacity 55% to account for differences in Opengl/Vulkan and/or decals | ||
albedo = mix(albedo, _editor_decal_color[i].rgb, clamp(decal * _editor_decal_color[i].a * .55, 0., .55)); | ||
// Decal fadeout from last time stamp | ||
float fade = clamp((_editor_decal_timestamp - TIME) * 8. - 6., 0., 1.); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do 8 and 6 represent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As only an offset time stamp is passed each update, those 2 values work with the offset to replicate the timer fade delay & speed of the original decal_timer.
removes all decals, closes #534
Adds a crosshair, with a threshold setting in the advanced menu, closes #533
Consolidate uniforms to just brush and ring textures