Podcast
Questions and Answers
Ein 8-Bit Farbbild mit Farbtabelle kann maximal 256^3 verschiedene Farben darstellen.
Ein 8-Bit Farbbild mit Farbtabelle kann maximal 256^3 verschiedene Farben darstellen.
True (A)
Welche der folgenden Aussagen über WebGL sind korrekt? (Wähle alle, die zutreffen)
Welche der folgenden Aussagen über WebGL sind korrekt? (Wähle alle, die zutreffen)
- Der Befehl `wglTranslate(x, y, z)` verschiebt einen Vertex an die Stelle (x, y, z)^T.
- Shader Programme sind Teil der graphics pipeline. (correct)
- Shader Programme werden auf der CPU interpretiert.
- WebGL stellt native nur einfache Primitive, wie Quadrate, Kugeln etc. zur Verfügung.
- Der fragment Shader wird immer vor dem vertex Shader ausgeführt. (correct)
Das Phong Beleuchtungsmodell berücksichtigt die ______ einer Lichtquelle.
Das Phong Beleuchtungsmodell berücksichtigt die ______ einer Lichtquelle.
Richtung
Erkläre den Unterschied zwischen dem diffusen und dem spiegelnden Lichtanteil im Phong Beleuchtungsmodell.
Erkläre den Unterschied zwischen dem diffusen und dem spiegelnden Lichtanteil im Phong Beleuchtungsmodell.
Verbinde die folgenden Komponenten des menschlichen Auges mit ihrer Beschreibung:
Verbinde die folgenden Komponenten des menschlichen Auges mit ihrer Beschreibung:
Alle Transformationen, die auf Vertices angewandt werden, müssen auch auf die Normalen (Vektoren) angewandt werden.
Alle Transformationen, die auf Vertices angewandt werden, müssen auch auf die Normalen (Vektoren) angewandt werden.
Welche der folgenden Aussagen über die Netzhaut (Retina) sind korrekt? (Wähle alle, die zutreffen)
Welche der folgenden Aussagen über die Netzhaut (Retina) sind korrekt? (Wähle alle, die zutreffen)
Was ist der blinde Fleck?
Was ist der blinde Fleck?
What is the purpose of the gl.generateMipmap(gl.TEXTURE_2D);
function in the provided JavaScript code?
What is the purpose of the gl.generateMipmap(gl.TEXTURE_2D);
function in the provided JavaScript code?
In the provided WebGL code, the line gl.activeTexture(gl.TEXTURE0);
indicates that we are activating texture unit ______ for use.
In the provided WebGL code, the line gl.activeTexture(gl.TEXTURE0);
indicates that we are activating texture unit ______ for use.
In the given GLSL fragment shader code, the output color is simply the sum of the colors sampled from the two textures u_image0
and u_image1
.
In the given GLSL fragment shader code, the output color is simply the sum of the colors sampled from the two textures u_image0
and u_image1
.
Describe the purpose of the m4.translation()
function in the code snippet for creating multiple objects in a circle.
Describe the purpose of the m4.translation()
function in the code snippet for creating multiple objects in a circle.
Match the following WebGL functions with their corresponding descriptions:
Match the following WebGL functions with their corresponding descriptions:
What is the purpose of the uniform variable 'u_resolution' in the vertex shader?
What is the purpose of the uniform variable 'u_resolution' in the vertex shader?
The fragment shader is responsible for determining the color of individual pixels.
The fragment shader is responsible for determining the color of individual pixels.
What does the variable 'rotationMatrix' in the JavaScript code represent?
What does the variable 'rotationMatrix' in the JavaScript code represent?
In the vertex shader, the function gl_Position is used to set the __________ of the vertex in clip space.
In the vertex shader, the function gl_Position is used to set the __________ of the vertex in clip space.
Match the following shader types with their primary function:
Match the following shader types with their primary function:
What is the purpose of the 'u_matrix' uniform in the vertex shader?
What is the purpose of the 'u_matrix' uniform in the vertex shader?
The 'fov' variable determines the positioning of the camera in 3D space.
The 'fov' variable determines the positioning of the camera in 3D space.
What is the primary function of the 'm4.perspective' method?
What is the primary function of the 'm4.perspective' method?
The variable 'aspect' is calculated by dividing the ______ width by its height.
The variable 'aspect' is calculated by dividing the ______ width by its height.
Match the following matrix operations with their purposes:
Match the following matrix operations with their purposes:
What does the variable u_surfaceToLight
represent in the vertex shader?
What does the variable u_surfaceToLight
represent in the vertex shader?
The precision of floating-point values in fragment shaders can be set using 'precision highp float';
The precision of floating-point values in fragment shaders can be set using 'precision highp float';
What operation is performed to calculate the specular reflection in the fragment shader?
What operation is performed to calculate the specular reflection in the fragment shader?
In the fragment shader, the variable u_shiness
is used to determine the ______ of the surface.
In the fragment shader, the variable u_shiness
is used to determine the ______ of the surface.
Match the following OpenGL terms with their description:
Match the following OpenGL terms with their description:
Which of the following statements is true regarding the use of textures in shaders?
Which of the following statements is true regarding the use of textures in shaders?
Vertex shaders are responsible for outputting the final color of pixels.
Vertex shaders are responsible for outputting the final color of pixels.
What is the purpose of the 'in' qualifier in shaders?
What is the purpose of the 'in' qualifier in shaders?
The variable v_normal
is used to store the ______ vector for lighting calculations.
The variable v_normal
is used to store the ______ vector for lighting calculations.
What does the texture()
function do in the fragment shader?
What does the texture()
function do in the fragment shader?
Flashcards
Grautöne im RGB-Farbwürfel
Grautöne im RGB-Farbwürfel
Alle Grautöne liegen nicht auf einer Kante des RGB-Farbwürfels.
Maximale Farben in Vollfarbbildern
Maximale Farben in Vollfarbbildern
Ein Vollfarbbild kann maximal 256^3 verschiedene Farben enthalten.
Farbtabelle eines 8-Bit Bildes
Farbtabelle eines 8-Bit Bildes
Ein 8-Bit Bild mit Farbtabelle kann maximal 256 Farben darstellen.
Fragment Shader Ausführung
Fragment Shader Ausführung
Signup and view all the flashcards
Graphics Pipeline und Shader Programme
Graphics Pipeline und Shader Programme
Signup and view all the flashcards
Phong Beleuchtungsmodell und Lichtquelle
Phong Beleuchtungsmodell und Lichtquelle
Signup and view all the flashcards
Diffuses Licht und Flächennormalen
Diffuses Licht und Flächennormalen
Signup and view all the flashcards
Skalarprodukt von Vektoren
Skalarprodukt von Vektoren
Signup and view all the flashcards
Translation Matrix
Translation Matrix
Signup and view all the flashcards
Rotation Matrix
Rotation Matrix
Signup and view all the flashcards
Perspective Camera
Perspective Camera
Signup and view all the flashcards
View Projection Matrix
View Projection Matrix
Signup and view all the flashcards
Vertex Shader
Vertex Shader
Signup and view all the flashcards
Vertex Shader Conversion
Vertex Shader Conversion
Signup and view all the flashcards
Creating a Buffer
Creating a Buffer
Signup and view all the flashcards
Fragment Shader Colors
Fragment Shader Colors
Signup and view all the flashcards
Rotation Matrix in Shaders
Rotation Matrix in Shaders
Signup and view all the flashcards
3D Object Shader
3D Object Shader
Signup and view all the flashcards
Fragment Shader
Fragment Shader
Signup and view all the flashcards
Uniform Variables
Uniform Variables
Signup and view all the flashcards
Light Direction Vector
Light Direction Vector
Signup and view all the flashcards
Normal Vector
Normal Vector
Signup and view all the flashcards
Texture Coordinates
Texture Coordinates
Signup and view all the flashcards
Specular Reflection
Specular Reflection
Signup and view all the flashcards
Diffuse Reflection
Diffuse Reflection
Signup and view all the flashcards
Model-View-Projection Matrix
Model-View-Projection Matrix
Signup and view all the flashcards
Shininess Parameter
Shininess Parameter
Signup and view all the flashcards
texImage2D function
texImage2D function
Signup and view all the flashcards
Active Texture Unit
Active Texture Unit
Signup and view all the flashcards
Mipmap Generation
Mipmap Generation
Signup and view all the flashcards
Matrix Transformations
Matrix Transformations
Signup and view all the flashcards
Study Notes
- No specific content provided for study notes.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.