Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
a computer program that runs on graphics hardware and provides a high degree of control over how scenes are rendered
8
votes
Accepted
Are there technical reasons to use short variable names in shader code?
The short nature of shaders makes this much more prevalent, which leads into my next point:
Shaders, by their nature, are meant to be very short. … Due to the lack of built in ability to share code between shaders, and the single function typical use case of shaders (they are used to usually do one thing) shaders typically are shorter than most single …
1
vote
Animating compression wave shader which uses image for displacement map
You could avoid the displacement map altogether using something like this:
https://www.shadertoy.com/view/ltXBDs
Basically, i create a radius that represents the wave, and make the sample the uv + d …
1
vote
0
answers
255
views
Is there an alternative method do do per-texel lighting in 3D without stream compaction?
Note: I'm not asking for an x% faster method. Work efficiency is an objective measure, it doesn't change because of hardware.
I've got a voxel world I'm trying to render, think Minecraft, same texture …
4
votes
Shader FloodFill Alogrithm
tab=readme-ov-file
While the examples are in cuda, with the proper feature set, this should translate rather directly to compute shaders. …
4
votes
How to create a spiral brightness gradient
You can analytically generate the same shader effect. This isn't unity or HLSL code, but you should be able to translate this easily to HLSL, plus it runs in shader toy and you can play around with i …
5
votes
1
answer
5k
views
How can I achieve simulated fluid surface deformation in a bottle?
I'd like to mimic this effect seen in Half Life: Alyx:
I can't figure out what is going on here, people say "it is just a shader effect it isn't simulating anything", but I don't think that is true …