sergey.pozhidaev Posted July 11, 2015 Share Posted July 11, 2015 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
silent Posted July 13, 2015 Share Posted July 13, 2015 Hi Sergey, I'm afraid you will need to change the state in material when you change the camera projection. Please, take a look into the example material file. post_filter_coordinate.mat Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts