menacingmecha / godot-psx-style-demo Goto Github PK
View Code? Open in Web Editor NEWDemo project featuring a collection of PS1 style shaders and materials for Godot engine.
License: MIT License
Demo project featuring a collection of PS1 style shaders and materials for Godot engine.
License: MIT License
I made a new Forward+ project in Godot v4.1.1.stable.official [bd6af8e0e] with just a camera and a MeshInstance3D that has a sphere mesh with a shadermaterial that uses the psx_lit shader just to see if this was just broken in more than one project. It's invisible once I run the project, and it's also throwing errors and warnings in the debugger and output. There's also no color parameters to be changed or image textures to be added in shader parameters like there used to be.
This project has all the files from the shaders folder in this repository. I don't think I am missing any files.
Trying to use these in a godot 4.1 RC 3 project by copying the shader folder but can't get these to work
Thank you for your patience
Not entirely sure what causes it but often when the camera gets close to a light source a blocky outline of the light can be seen. It should have something to do with the affine mapping POSITION /= abs(POSITION.w);
line because I removed the rest of the shader and the blocky effect remains until I comment it out.
Interestingly you can also get the effect with the default godot shader if you crank the light's attenuation to some crazy values so maybe that'll give some clues as to what's going on
I have an example project that shows both
godot-psx blocky lighting.zip
Running on Godot 4.0.2.stable
in lcd_post_process.gdshader:
line 33: Unknown identifier in expression: 'TEXTURE'.
in post_process_blur.gdshader:
line 52: Unknown identifier in expression: 'TEXTURE_PIXEL_SIZE'.
in pp_band-dither.gdshader:
line 9: Unknown identifier in expression: 'TEXTURE'.
and an invalid render mode error in psx_base.gdshaderinc:
line 1: Invalid render mode: 'LIT'.
Meshes with any shader from this repo appear invisible for me, even after I followed all the instructions in the description (including adding the precision_multiplier float in shader globals). I don't think this supposed to happen... shader parameters seem to be working, but no matter what shader parameter I change, the mesh becomes invisible with any of the shaders. Am I doing something wrong?
Looking for thoughts and feedback on if the demo should be split from the shaders, and include the shaders in the demo by way of git submodules.
Main reasoning for this would be to help with ease of adding to projects. As it stands, users have to copy-paste individual files, which is both messier than it could be, and often includes a lot of assets that users won't need for their projects.
Additionally, we could reduce copied work even further by merging the demos for the PSX and N64 shaders, while keeping the shaders separate in submodules.
Main drawback I can think of is it would complicate where to leave issues, but I don't think that'd be much of an issue.
Thoughts?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.