Jump to content

[SOLVED] ortho / perspective switching


photo

Recommended Posts

hi, i am saw examples post_coordinate_00 & post_coordinate_01

 

if i understood properly, in this examples demonstrates switching ortho / perspective shader realization for camera projection? or not?

 

for example i have 2 shader realization for (ortho & perspective)

1) i need add defines="PERSPECTIVE" & "perspective" parameter

2) then i need handle code for:

#ifdef PERSPECTIVE

 
#elif ORTHOGRAPHIC
 
#endif
 
 
this switching need mto make manual or it will be automatically (by player projection on core level)?
Link to comment
×
×
  • Create New...