Skip to content

Tutorial 05 shader filename problem #149

Description

@Gigabitten

All the chapter 5 tutorials use Standard.vert and Standard.frag, which can be located in the data folder in the folder for the chapter. It seems like all the data folders for every chapter get pulled into a top-level data folder, which is what's actually read from when the tutorials get run. My guess is that there's something funky going on with case sensitivity; there's already a standard.vert and a standard.frag in there, and no Standard.vert or Standard.frag. If I run:

find . -type f -exec sed -i 's/Standard\.frag/Standard05\.frag/g' {} +
find . -type f -exec sed -i 's/Standard\.vert/Standard05\.vert/g' {} +
mv Tut\ 05\ Objects\ in\ Depth/data/Standard.frag Tut\ 05\ Objects\ in\ Depth/data/Standard05.frag
mv Tut\ 05\ Objects\ in\ Depth/data/Standard.vert Tut\ 05\ Objects\ in\ Depth/data/Standard05.vert

then build the tutorial, it works fine.

(Note: using sed to do a global find-replace on Standard.frag and Standard.vert is proooobably overkill and could even hit too much if other tutorials have similarly-named shaders, it's probably better to just change the names in those few tutorials)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions