Tagged Questions
0
votes
0answers
41 views
Unity Shader GrabPass alternative
Is there an alternative for the heavy GrabPass method ?
Is there a solution to avoid the foreground issue ? I mean when using GrabPass, if the refracted object is in front of the bumpy refractor, he ...
0
votes
1answer
155 views
How to do Triplanar Texturing
Ok maybe i'm missing something because its getting late and i've been programming now for about 72 hours straight (minus a nap or 2) ...
I'm trying to write a shader for unity that will apply ...
0
votes
0answers
49 views
NVIDIA FX Composer 2.5 not updating time in preview
I started testing shaders today and got a problem with
FX Composer.
When I download Shaders from the Shader Library it compiles them fine and
I get a preview which applies the material to the object, ...
2
votes
1answer
269 views
shader coding: calculate screen coordinates of fragment
Good morning,
I'm new to shader coding and trying to implement some visual effects code in shaders using billboards. (Yes, I couldn't have picked anything harder to start with, but I'm lucky that way)
...
-1
votes
1answer
202 views
New to CG shader programming, what program should I use to write and test them? [closed]
I have started witting some shaders. First ones were fairly easy to write in notepad but now I need something with a bit more meat. I have checked rendermonnkey that seems to support CG but it is ...
0
votes
1answer
204 views
Calculating distance from viewer to object in a shader
Good morning,
I'm working through creating the spherical billboards technique outlined in this paper. I'm trying to create a shader that calculates the distance from the camera to all objects in the ...
0
votes
0answers
81 views
How to move a directional light according to the camera movement?
Given a light direction, how can I move it according to the camera movement, in a shader?
Think that an artist has setup a scene (e.g., in 3DSMax) with a mesh in center of that and a directional ...
4
votes
1answer
716 views
Custom shadow mapping in Unity 3D Free Edition
Since real time hard and soft shadows are Unity 3D Pro only features I thought I will learn Cg programming and create my own shadow mapping shader. But after some digging I found that the shadow ...
1
vote
1answer
482 views
What kind of shader is this?
Cube World uses a pretty good looking shader, I especially like the shading of the characters:
Is this soft shading? I'd like to achieve this effect in Unity 3D Free, but since the free version ...
2
votes
1answer
759 views
Unity custom shaders and z-fighting
I've just readed a chapter of Unity iOS Essential by Robert Wiebe.
It shows a solution for handling z-figthing problem occuring while rendering a street on a plane with the same y offset.
Basically ...
2
votes
0answers
200 views
Kinect User Silhouette Shader
I have this usermap from kinect's depth data (size is 320x280) and i want to display it on my game. The problem, of course it's ugly (first image) and i want to have beautiful effect like in the ...
0
votes
0answers
211 views
Differences in cg shader code for OpenGL vs. for DirectX?
I have been trying to use an existing library that automatically generates shaders (Hydrax plugin for Ogre3D).
These shaders are used to render water and somewhat involved, but are not extremely ...
2
votes
1answer
492 views
Shader optimization - Cg/HLSL pseudo and via multiplication
HLSL/Cg do not allow texture fetching inside conditional blocks. To get around this I am first checking a variable and performing some computations, afterwards I set a float flag to 0.0 or 1.0, ...
0
votes
1answer
317 views
Custom made depth bias (vertex) shader
As most of intermediate graphics programmers know, z-fighting can be a problem. That's why most game engines prevent this from happening by using a slope depth bias algorithm.
As there's no direct ...
2
votes
1answer
466 views
Doubt about texture waves in CG Ocean Shader
I'm new on graphical programming, and I'm having some trouble understanding the Ocean Shader described on "Effective Water Simulation from Physical Models" from GPU Gems. The source code associated to ...
31
votes
6answers
9k views
5
votes
2answers
990 views
OpenGL equivalent of .fx files in GLSL or Cg?
There's a lot of learning material in the DirectX world that uses .fx files to manage shaders, and .fx seems to be well integrated with 3D packages such as Maya and 3D Studio Max
What do larger ...