shader
OpenGL ES 2.0 shader, how is time variable called?
I try to per开发者_StackOverflowform such pixel shader: \"#ifdef GL_ES\\n\" \"precision highp float;\\n\"[详细]
2023-03-10 10:51 分类:问答What is OpenGL ES 2 Shader language analog for HYDRA (pixel bender) sampleLinear?
So I look onto OpenGL ES shader specs but do not see such... For example - I created simple \"pinch to zoon\" and \"rotate to turn around\" and \"move to move center\" HYDRA pixel bender filter. it c[详细]
2023-03-10 06:25 分类:问答applying texture to Cube, different texture on each face of cube
I\'m trying to apply different texture on cube with shaders using samplerCube and textureCube. But I\'m not able to get texture drawn on faces of cube only single color is appearing.[详细]
2023-03-10 03:30 分类:问答Retrieving data from GLSL vertex shader
I have lots of transparent primitives I want to sort before drawing, but to get the Z coordinate, the sorting key, I have perform in software all the transformations performed by the vertex shader in[详细]
2023-03-09 19:18 分类:问答Newbie OpenGL ES 2.0 Math question
After resisting the mighty power of ES 2.0 for a while, I finally give up myself and try to swallow as much as my mouth can bite. Here are my questions. According to few good books and examples, my ve[详细]
2023-03-09 14:14 分类:问答Shaders' Performance (Vertex VS Fragment)
Is ALWAYS better make the hard calculations inside the Vertex Shader开发者_运维知识库 rather than in Fragment Shader? Even to high mesh models, with more than 100.000 polygons (assuming there are a bu[详细]
2023-03-08 02:14 分类:问答GLSL - computing normals of fragments
I\'m trying to create a program that displays a globe with terrain, and does all Lat/Long/Alt to XYZ (ECEF) on the GPU.[详细]
2023-03-07 13:52 分类:问答Issue with alpha in 2d lighting shader in XNA 4.0
I\'m currently learning HLSL with XNA, I figured the best place to start after tutorials would be some simple 2D shaders. I\'m attempting t开发者_高级运维o implement a simple lighting shader in 2D.[详细]
2023-03-06 11:22 分类:问答Bit-wise alternative
I\'m trying to write a shader that needs pseudo-random number generation per pixel - fetching from a texture is just too expensive.[详细]
2023-03-06 01:51 分类:问答D3DXCompileShader strange errors when run outside of Visual Studio
I\'ve got two questions really. The first is more a description 开发者_运维问答of events:software uses DirectX 9 and compiles shaders at start-up from resources.The shaders compile fine with both deb[详细]
2023-03-05 21:50 分类:问答