CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - opengl sphere s
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - opengl sphere s - List
[
Multimedia Develop
]
OpenGL-sunaearth
DL : 0
以太阳、地球作为例子,把太阳作为光源,模拟地球围绕太阳转动时光照的变化。于是,需要设置一个光源——太阳,设置两种材质——太阳的材质和地球的材质。 把太阳光线设置为白色,位置在画面正中。把太阳的材质设置为微微散发出红色的光芒,把地球的材质设置为微微散发出暗淡的蓝色光芒,并且反射蓝色的光芒,镜面指数设置成一个比较小的值。简单起见,不再考虑太阳和地球的大小关系,用同样大小的球体来代替之。 -In the sun, the Earth as an example, the sun as a light source, simulate the Earth rotation around the sun light changes. Thus, the need to set up a light source- the sun, setting two materials- the sun and the Earth material material. The sun s rays to white, middle position in the frame. The material of the sun setting slightly exudes red light, the earth material to emit a slightly dim blue light and reflects blue light, mirror the index is set to a relatively small value. For simplicity, no longer consider the relationship between the Sun and Earth s size, with the same size of a sphere instead.
Date
: 2025-12-25
Size
: 10.26mb
User
:
Alice
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.