Forum Mod Bakery Docs

Finding textures associated with shaders.

Posted in Support
Please login to contribute to the conversation.
Hey everyone, this is my first post here.

I've been looking through the games .p3d files using the tool DonutTeam provides, and extracting parts of the level map. However, I've noticed that textures aren't used but shaders are.

For example, when I open up a part of Level 3 in the model viewer, most of it is untextured. i.imgur.com/wEGvgKA.png

However, I've noticed that it uses shaders, but the shaders don't point to anything, hence everything being untextured. imgur.com/a/qWKNc

If anyone knows how I would find these textures, please let me know :)

Thanks :')
Moved topic to Mod Help

Welcome to Donut Team! I'd be happy to help you.

Some textures are loaded from the TERRA file, which is sort of like a global file for the level. To view them in the editor, click on "Tools" and then on "Keep Shared Resources Loaded For Previews". You'll now seen them in 3D previews.

To extract/modify these textures, you'd need to look at the TERRA file for each level (Example: L1_TERRA.p3d is the TERRA file for Level 1). The textures can be found in those files by the same name the shader references it.
Thank you very much for your help :D