Of course, in the vertex shader I just write a general equation so we don't have to deal with each special case individually like this.
当然,在顶点着色器中,我们可以使用一个通用的公式来计算和叠加光照,而不需要像上面提到的那样分别应付各种不同的情形。
This way, not every person will be able to read and modify your vertex shader source.
使用这种方法,就不是每一个人都可以看到你的顶点着色源文件了。
If possible simplify your pixel shaders by moving code to vertex shader.
如果可能,为了简化你的像素着色器,把代码移动到顶点着色器中。
The following three lines from the vertex shader code determine the absolute offset into the matrix array which is stored as constants.
下列三行顶点着色代码,求出矩阵数组里存储的常量的绝对偏移量。
Vertices are read from the vertex data stream and are sequentially processed by the shader function.
从顶点数据流中读出顶点后,就由着色器函数来对其进行处理。
Is the distinction between vertex and pixel shader necessary or even beneficial?
顶点和像素着色器是必要的甚至是有益的区别?
A vertex shader consists of two parts: shader function and shader declaration.
顶点着色器包含两个部分:着色器函数和着色器声明。
This shader only does per-vertex lighting, giving a much higher throughput on low-end CARDS.
这个着色器(shader)只进行顶点光照,在低端卡提供高得多的吞吐量。
This shader only does per-vertex lighting, giving a much higher throughput on low-end CARDS.
这个着色器(shader)只进行顶点光照,在低端卡提供高得多的吞吐量。
应用推荐