已知下列代码完成了一个带纹理的立面绘制,请从选项里面选择正确的语句填到空白处: PImage img; float theta = 0.0; void setup() { size(400,400,P3D); noStroke(); img = loadImage("f2.jpg"); ① //设置纹理模式 } void draw() { background(144); theta +=0.01; translate(150,200,0); rotateX(theta); beginShape(QUADS); ② //加载纹理图片 vertex(0,0,0,0,0); vertex(100,0,0,1,0); vertex(100,100,0,1,1); vertex(0,100,0,0,1); endShape(); }

A.①texture(img); ②textureMode(NORMAL); B.①textureMode(NORMAL); ②texture(img); C.①texture(img); ②textureMode(img); D.①textureMode(img); ②texture(img);

时间:2024-03-16 09:18:34

相似题目