Dormouse
02-12-2010, 02:03 AM
Hello everyone here~
I am working with CGFX Shader. In my project, I used 3D points dataset. I've implemented CGGX Shader on 3d points to have the Point Size Attenuation effect. In my CGFX shader I found: 'PointDistanceAttenuation = float3(1.0, 0, 0);' in 'Renderstates of Vertex Pipeline'
I've tried with PointDistanceAttenuation = float3(0,1.0,0) to have a linear point size attenuation, but it doesn't work, all the points look like in a same size.
Actually, the 3D points which are far away should look smaller than those closer to the viewer.
Anybody knows:
--How to active PointDistanceAttenuation property in CGFX shader?
--or before activation of PointDistanceAttenuation I have to enable other states?
--PointDistanceAttnuation is used to set PointSize? or Point lighting?
Thx in advance~
I am working with CGFX Shader. In my project, I used 3D points dataset. I've implemented CGGX Shader on 3d points to have the Point Size Attenuation effect. In my CGFX shader I found: 'PointDistanceAttenuation = float3(1.0, 0, 0);' in 'Renderstates of Vertex Pipeline'
I've tried with PointDistanceAttenuation = float3(0,1.0,0) to have a linear point size attenuation, but it doesn't work, all the points look like in a same size.
Actually, the 3D points which are far away should look smaller than those closer to the viewer.
Anybody knows:
--How to active PointDistanceAttenuation property in CGFX shader?
--or before activation of PointDistanceAttenuation I have to enable other states?
--PointDistanceAttnuation is used to set PointSize? or Point lighting?
Thx in advance~