cg Questions
2
Solved
I'm writing CG shaders for advanced lighting calculation for game based on Unity. Sometimes it is needed to sum all vector components. There are two ways to do it:
Just write something like:
flo...
Kowalski asked 5/9, 2019 at 11:20
1
Solved
First, please allow me to explain what I've got and then I'll go over what I'm trying to figure out next.
What I've got
I've got a textured custom mesh with some edges that exactly align with in...
Words asked 29/8, 2019 at 4:52
6
Solved
I'm using GC for writing shaders inside Unity3D.
I'm using vertex colors attributes for passing some parameters to the shader. They won't be used so for defining colors, and should be forwarded fr...
Laplante asked 14/12, 2012 at 10:23
5
Solved
I want to work with some frameworks like glew and cg so i manually added
the needed frameworks to my project by right clicking the project -> Add files to ...
and choosing the correct framework....
Natch asked 20/3, 2013 at 22:58
2
Recently I've been coding shaders for unity in visual studio and I've noticed that since unity shaders are written in a combination of unity's shader lab language and CG, visual studio 2015 d...
Meeker asked 29/7, 2016 at 13:49
2
I am quite new to shaders and have been searching for a full list of Unity shader properties. I haven't found any such documentation. What I found was SL-Properties. Where can I find a full list of...
Bogie asked 10/6, 2016 at 11:29
2
Solved
While I built an idea of what vert_img does by observing results, I would like to read a more theoretical explanation that I couldn't find online.
For context, I found this vert_img in some shaders...
Ashleyashli asked 1/2, 2016 at 17:32
3
Solved
I am using the following code to perform some manipulations on the image that I loaded, but I find that the display becomes blurry when it is on the retina display
- (UIImage*)createImageSection:(...
Dissever asked 16/1, 2011 at 19:13
1
Solved
I want to sort my Sprites using Unitys sorting Layers. I attached a custom Shader to one of my Sprites. Sadly the Sprite with this shader always draws behind the other Sprites disrespecting the sor...
Eckmann asked 24/10, 2015 at 19:5
2
Solved
In a surface shader, given the world's up axis (and the others too), a world space position and a normal in world space, how can we rotate the worldspace position into the space of the normal?
Tha...
Amah asked 27/8, 2015 at 18:54
2
Solved
I am writing a shader for unity3d and I want to specify the properties of the shader in i.e like -
Shader "GraphicsQuality/MediumScan" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
_S...
Miscellanea asked 24/9, 2013 at 17:47
3
Solved
http://http.developer.nvidia.com/Cg/TessellationControlShader.html
I have some questions regarding CG.
What OpenGL version does CG support? On their site they state
Opengl Functionality Requ...
2
Solved
I cannot seem to understand this, shouldn't the derivative/change along the U or V coordinate in a 2d texture/array be single dimension variable as we are checking it only along ddx (U coordinate) ...
Frentz asked 4/7, 2014 at 7:31
5
Solved
I've read some tutorials regarding Cg, yet one thing is not quite clear to me.
What exactly is the difference between vertex and fragment shaders?
And for what situations is one better suited...
Brigidabrigit asked 12/12, 2010 at 10:41
1
Solved
I'm trying to understand how image resizing works - please, can someone explain to me what is a "filter" good for?
does a filter calculates how much a source pixel contributes to a destination pi...
Waltman asked 17/9, 2012 at 8:16
1
Solved
I am using Ogre3D as the graphics engine.
I create a mesh manually which works fine, uvs are correct and are set to represent grid coordinates (for this example the grid is a 10 x 10)
I do nothi...
1
Solved
I'm trying to create a wireframe vertex/fragment shader in Unity. It seems possible according to this paper. The general ideas seems to be that you pass a distance vector calculated in the vertex s...
Harewood asked 18/1, 2012 at 18:24
1
© 2022 - 2024 — McMap. All rights reserved.