Модератор: Mikle
d3dDevice.SetRenderState D3DRS_FOGENABLE, 1
d3dDevice.SetRenderState D3DRS_FOGCOLOR, &H808080
d3dDevice.SetRenderState D3DRS_FOGDENSITY, FtoDW(0.5)
d3dDevice.SetRenderState D3DRS_FOGTABLEMODE, D3DFOG_EXP
Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
Function FtoDW (s as Single) as Long
dim d as Long
CopyMemory d, s, 4
FtoDW = d
End Function
А когда быдет непозно???)
d3dDevice.SetRenderState D3DRS_FOGENABLE, 1
d3dDevice.SetRenderState D3DRS_FOGCOLOR, &HAA22AA
' d3dDevice.SetRenderState D3DRS_FOGTABLEMODE, D3DFOG_LINEAR
d3dDevice.SetRenderState D3DRS_FOGVERTEXMODE, D3DFOG_LINEAR
d3dDevice.SetRenderState D3DRS_FOGSTART, 0.9
d3dDevice.SetRenderState D3DRS_FOGEND, 1
d3dDevice.SetRenderState D3DRS_RANGEFOGENABLE, 1
Public Declare Function FtoDW Lib "msvbvm60" Alias "VarPtr" (ByVal s As Single) As Long
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 3