A collection of random shaders that I've reverse engineered. Sometimes for use in a mod, but mostly for fun. You can find the finished ones in the unity/Assets/Shaders
directory and the unfinished/semi-functional ones in WIP
.
You can package them into an asset bundle by opening the unity directory in Unity Editor 2018.4.12f, including or excluding by selecting each shader and using the dropdown at the very bottom right of the screen, and building an asset bundle by going to Window > DSP Tools > Build Asset Bundles > Compressed. In a few seconds, dspshaders-bundle
will appear in /Assets/StreamingAssets/AssetBundles/
.
Also included a super simple bepinex mod that will load all shaders out of the bundle and swap them out with vanilla shaders that match their name with "REPLACE" at the end. When you run DSP with the mod and it looks like nothing happened, that means I recreated all of the shaders perfectly. More likely, you'll see some graphics glitches and know where I still have some work to do.
For example, water/oceans on planets is currently pretty bad. Planet terrain looks a little off too.
![vff-water-shader-glitchy](https://private-user-images.githubusercontent.com/2807932/302014351-4f7ec138-d3ef-4146-9483-8b441d863ae4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNjYxNDIsIm5iZiI6MTcyNjE2NTg0MiwicGF0aCI6Ii8yODA3OTMyLzMwMjAxNDM1MS00ZjdlYzEzOC1kM2VmLTQxNDYtOTQ4My04YjQ0MWQ4NjNhZTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MTJUMTgzMDQyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWZjMDNmMzcxNmVkZGI0ZjhmYThmOGMyYzZmYzNhYTAyODgzMjIzOWQ4ZDExNzlkNDgwYmRiM2FiMzI3ODY5MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.RCMIagZeimgmQgIfFDKQj_yMYEAo808tsVWNqiiX5Fg)
Metal and Stone Veins look pretty good.
![metal-vein-shader](https://private-user-images.githubusercontent.com/2807932/302014454-68e87b49-9848-46ab-b94f-4dd04fe67d80.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNjYxNDIsIm5iZiI6MTcyNjE2NTg0MiwicGF0aCI6Ii8yODA3OTMyLzMwMjAxNDQ1NC02OGU4N2I0OS05ODQ4LTQ2YWItYjk0Zi00ZGQwNGZlNjdkODAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MTJUMTgzMDQyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDAxY2IyNzg2MDBjNTUzZDNjZDA0MTkyMDkwZTM5ZWU5ZGIwZGZkZTYzN2UyZjU1YTM4ZWVkZWFjYjBmNmQ2NCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.IftaSmhvXBWHog0t4gv9Em3TT1fl8INIkgjSt6hNiog)
![stone-vein-shader](https://private-user-images.githubusercontent.com/2807932/302014458-e49b78f9-bfc9-406e-8086-099af70fc5bb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNjYxNDIsIm5iZiI6MTcyNjE2NTg0MiwicGF0aCI6Ii8yODA3OTMyLzMwMjAxNDQ1OC1lNDliNzhmOS1iZmM5LTQwNmUtODA4Ni0wOTlhZjcwZmM1YmIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MTJUMTgzMDQyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZmQ2NjdmOTUzYWZlMmQ3NjZlYjUxOTBkYjE3YzY4Yzg4YjQ2OWQ1OWJjYWMwNTIxY2MxNGE3NjQ5MjgyOWJkOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.C9FrPFDWtTI_wyu6WdljLHYGDqn-d7ofqKLt75Au3og)
Crystal Veins still need some work
![crystal-vein-shader](https://private-user-images.githubusercontent.com/2807932/302014495-886a5fa3-99f0-43fe-a194-be417c6ec1ff.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNjYxNDIsIm5iZiI6MTcyNjE2NTg0MiwicGF0aCI6Ii8yODA3OTMyLzMwMjAxNDQ5NS04ODZhNWZhMy05OWYwLTQzZmUtYTE5NC1iZTQxN2M2ZWMxZmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MTJUMTgzMDQyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9M2YyMmZiMTYzMTI5YjU5YzZkMzlkMDk4OTIzNTdkNjY1NjYzZWJjMjgxYWY2ZDg4ZmM1MzA0M2QwZGNmNjdkNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.5eUM4Y4CWRCqRptKoe1_EaIDR3PU2eDGw_bVkR2L1a8)
Cargo Containers look right, but belts look terrible.
![cargo-shader](https://private-user-images.githubusercontent.com/2807932/302014597-6c397614-e04f-4b82-bea9-4bfc5d3bcf2a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNjYxNDIsIm5iZiI6MTcyNjE2NTg0MiwicGF0aCI6Ii8yODA3OTMyLzMwMjAxNDU5Ny02YzM5NzYxNC1lMDRmLTRiODItYmVhOS00YmZjNWQzYmNmMmEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MTJUMTgzMDQyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjI5YjZkMzFjNjE4ODgxMDY0MTg2NmQyYzJmOWVmMTM4NzJkNWYzMzFhZTU5NDBjNzNkMDkzOTc5ZTVkMmRiMSZYLUFtei1TaWduZ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