Thank you!

Yes, screen resolution is too low, changed it to 640x480. Also, there are some other stuff needs to be added to get proper ps1 look, f.e.:
Quote
- vertex inaccuracy;
- screen-space dithering;

With all of them working together this could look really awesome! I think acknex is only suitable for oldschool styled games, compared to up-to-date game engines.

Take a look at this video showing PSXEffects in Unity engine:
PSXEffects - Retro PlayStation 1 Graphics in Unity

As for static lightmap, yes I know it's stored in the entSkin2 but I don't know how to use it properly... I wish there were original mtl_shaded and mtl_model .fx files, so I could modify them directly, instead of trying to write everything on my own (since I'm not good at shaders at all). I just couldn't find them.. They are defined as ENGINE_MATERIAL mtl_shaded in avars.h and that's all...

So far I got working:
Quote
-affine texture mapping
-vertex lightning + static lightmap (too dark, I'm probably using it incorrectly.. but at least I see lightmap)

Not working:
Quote
-fog
-spotlights


Any ideas on how to calculate vertex spotlight or how to fix fog are welcome! laugh The fog one is really strange, since I don't change inPos at all..

[Linked Image]

Best regards!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung