THREE.AnimationClip("c", -1, [t1, t2])
for a THREE.Mesh
is made up of two key frame tracks: t1 = new THREE.VectorKeyframeTrack(".position", [0, 1, 4], [1, 0, 0, 0, 1, 0, 0, 0, 1])
and t2 = new THREE.ColorKeyframeTrack(".material.color", [0, 2, 4], [1, 0, 0, 0, 1, 0, 0, 0, 1])
, and linear interpolation is used. What is the color of the mesh when its position is [0, 1, 0]
? THREE.Color(0.5, 0.5, 0)
THREE.Color(1, 0, 0)
THREE.Color(0, 1, 0)
THREE.Color(0.25, 0, 0.75)
[0, 1, 0]
uv
is the per fragment UV value in the fragment shader, x = uv.x - 0.5
, y = uv.y - 0.5
, and c1
, c2
are two different colors. If gl_FragColor = mix(c1, c2, step(0.25, z));
creates a diamond 🔷 shape pattern on a square mesh, what is z
? z = abs(x) + abs(y);
z = pow(x, 2) + pow(y, 2);
z = max(x, y);
z = min(x, y);
z = abs(x + y);
v
of a triangle is at the origin in the scene (its "worldPosition" is THREE.Vector(0, 0, 0)
), then which of the following value is always vec4(0.0, 0.0, 0.0, 1.0)
regardless of what transformation is applied to the mesh containing the triangle? modelMatrix * vec4(position, 1.0)
viewMatrix * vec4(position, 1.0)
modelViewMatrix * vec4(position, 1.0)
projectionMatrix * modelViewMatrix * vec4(position, 1.0)
vec4(position, 1.0)
N
is the unit normal direction, L
is the unit light direction, E
is the unit camera direction, R
is the unit reflected light direction (normalize(reflect(-L, N))
). When is the specular light intensity the highest? E = R
E = L
N = L
E = -R
E = -L
curve = new THREE.CatmullRomCurve3([new THREE.Vector3(2, 0, 0), new THREE.Vector3(0, 2, 0), new THREE.Vector3(0, 0, 2)], true, "catmullrom", 0.5)
(here closed = true
and tension = 0.5
), what is curve.getTangent(0)
? THREE.Vector3(0, 1, -1)
THREE.Vector3(0, 2, -2)
THREE.Vector3(0, 4, -4)
THREE.Vector3(2, 0, 0)
THREE.Vector3(1, 0, 0)
box = new THREE.BoxGeometry(1, 1, 1, 1, 1, 1)
has 6 faces and 4 vertices on each face, so the total number of vertices (or box.getAttribute("position").count
) is 24. If vertex splitting is done to box
and box2 = new THREE.BufferGeometry()
is constructed so that two triangles on the same face can have different colors, what is the least number of vertices in box2
(box2.getAttribute("position").count
)? requestAnimationFrame(time)
function will not make the mesh = new THREE.Mesh()
move smoothly up and down (in the Y direction)? Note: if more than one of following lines do not make the mesh move smoothly up and down, select the answer "More than one of the other answers". mesh.position.set(0, time % 1, 0)
mesh.position.set(0, Math.abs(Math.sin(time)), 0)
mesh.position.set(0, Math.sin(time) + 1, 0)
mesh.position.set(0, Math.abs(time - Math.floor(time) - 0.5), 0
Last Updated: November 30, 2024 at 4:35 AM