Suchergebnisse für Anfrage "glsl"

8 die antwort

WebGL: Schleifenindex kann nicht mit nicht konstantem Ausdruck verglichen werden

Ich habe einen Webgl-Blur-Shader: precision mediump float; precision mediump int; uniform sampler2D u_image; uniform float blur; uniform int u_horizontalpass; // 0 or 1 to indicate vertical or horizontal pass uniform float sigma; // The sigma ...

4 die antwort

Was ist der Zweck von "glEnableVertexAttribArray (GLuint-Index)" in OpenGL?

Nach dem Aufruf vonglVertexAttribPointer(GLuint index, ...) Das Vertex-Attribut ist standardmäßig deaktiviert, da das docs [http://docs.gl/gl4/glEnableVertexAttribArray] sage Standardmäßig sind alle clientseitigen Funktionen deaktiviert, ...

2 die antwort

GLSL: pow vs Multiplikation für ganzzahligen Exponenten

Was ist schneller in GLSL: pow(x, 3.0f);ode x*x*x;? Hängt die Potenzierungsleistung vom Hardwarehersteller oder vom Exponentenwert ab?

TOP-Veröffentlichungen