首页 > 文档 > shininess()光泽度
2017
08-07

shininess()光泽度

Name

shininess()光泽度

   

Examples

shininess()光泽度 - 第1张  | Processing编程艺术shininess()光泽度 - 第2张  | Processing编程艺术shininess()光泽度 - 第3张  | Processing编程艺术

size(100, 100, P3D);

background(0);

noStroke();

background(0);

fill(0, 51, 102);

ambientLight(102, 102, 102);

lightSpecular(204, 204, 204);

directionalLight(102, 102, 102, 0, 0, -1);

specular(255, 255, 255);

translate(30, 50, 0);

shininess(1.0);

sphere(20); // Left sphere

translate(40, 0, 0);

shininess(5.0);

sphere(20); // Right sphere

Description

Sets the amount of gloss in the surface of shapes. Used in combination with ambient()specular(), and emissive() in setting the material properties of shapes.

设置形状表面的光泽量。在设置形状的材质属性时, 与环境 ()、镜面 () 和放射 () 结合使用。

Syntax

shininess(shine)

Parameters

shine

float: degree of shininess

 

光泽度

Returns

void

Related

emissive()
ambient()
specular()



最后编辑:
作者:卡萨布兰卡
这个作者貌似有点懒,什么都没有留下。

留下一个回复

你的email不会被公开。