游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1564|回复: 1

?????DX??????

[复制链接]

5

主题

14

帖子

14

积分

新手上路

Rank: 1

积分
14
发表于 2010-8-12 17:20:00 | 显示全部楼层 |阅读模式
??????????????
        D3DXVECTOR3 dir(1.0f, -0.0f, 0.25f);
        D3DXCOLOR   c = d3d::WHITE;
        D3DLIGHT9 dirLight = d3d::InitDirectionalLight(&dir, &c);

        //
        // Set and Enable the light.
        //

        Device->SetLight(0, &dirLight);
        Device->LightEnable(0, true);

        //
        // Set lighting related render states.
        //

        Device->SetRenderState(D3DRS_NORMALIZENORMALS, true);
        Device->SetRenderState(D3DRS_SPECULARENABLE, false);

???????????????????????????

??WHITE?InitDirectionalLight??D3D??

???????????????????

5

主题

14

帖子

14

积分

新手上路

Rank: 1

积分
14
 楼主| 发表于 2010-8-12 17:21:00 | 显示全部楼层

Re:?????DX??????

???????????????CPP?????????????
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-8-18 22:02

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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