游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1877|回复: 6

怎样加强光照

[复制链接]

42

主题

418

帖子

418

积分

中级会员

Rank: 3Rank: 3

积分
418
发表于 2005-8-4 17:17:00 | 显示全部楼层 |阅读模式
点光源中,最大光照只能为 1.0,大于 1.0 的都当作 1.0 处理,怎么才能突破这个限制呢?

42

主题

418

帖子

418

积分

中级会员

Rank: 3Rank: 3

积分
418
 楼主| 发表于 2005-8-4 18:06:00 | 显示全部楼层

Re:怎样加强光照

光、光,我要那种能把贴图照成白色的光,55555555555555

2

主题

177

帖子

177

积分

注册会员

Rank: 2

积分
177
发表于 2005-8-4 18:27:00 | 显示全部楼层

Re:怎样加强光照

自已用shader算光照

42

主题

418

帖子

418

积分

中级会员

Rank: 3Rank: 3

积分
418
 楼主| 发表于 2005-8-5 08:41:00 | 显示全部楼层

Re:怎样加强光照

55555555555
还是要谢谢 dancercl 了-_-!

8

主题

182

帖子

268

积分

中级会员

Rank: 3Rank: 3

积分
268
发表于 2005-8-5 12:21:00 | 显示全部楼层

Re:怎样加强光照

D3DCOLORVALUE Structure

--------------------------------------------------------------------------------


Describes color values.


Syntax

typedef struct _D3DCOLORVALUE {
    float r;
    float g;
    float b;
    float a;
} D3DCOLORVALUE;
Members

r
Floating-point value specifying the red component of a color. This value generally is in the range from 0.0 through 1.0, with 0.0 being black.
g
Floating-point value specifying the green component of a color. This value generally is in the range from 0.0 through 1.0, with 0.0 being black.
b
Floating-point value specifying the blue component of a color. This value generally is in the range from 0.0 through 1.0, with 0.0 being black.
a
Floating-point value specifying the alpha component of a color. This value generally is in the range from 0.0 through 1.0, with 0.0 being black.
Remarks

You can set the members of this structure to values outside the range of 0 through 1 to implement some unusual effects. Values greater than 1 produce strong lights that tend to wash out a scene. Negative values produce dark lights that actually remove light from a scene.

dx的帮助里说是可以超过1的

8

主题

182

帖子

268

积分

中级会员

Rank: 3Rank: 3

积分
268
发表于 2005-8-5 12:23:00 | 显示全部楼层

Re: 怎样加强光照

你的光再强,如果面的法线和光的方向相反,还是漆黑一片的。

106

主题

743

帖子

745

积分

高级会员

Rank: 4

积分
745
QQ
发表于 2006-9-5 21:13:00 | 显示全部楼层

Re:怎样加强光照

请问怎样超过1.0f???
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-25 07:20

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表