Posts: 11,682
Thanks: 9680 in 11 Posts
20 Achievements
I don't know about the tutorial but basically you want to have a material/texture pair of resources and it's the material you switch to, which automatically gets the paired texture. You put the material names in STR#0x88 and then change between them by some code similar to:
0000 : 006D : 00 : 0001 : FFFC : 03000001000A00000000000000000000
[prim 0x006D] Change Material (Target: Stack Object ID 0x0000, Material from: Me (material: "##0x1C050000!ijaptctrlr3-[0b2aeb5b-68d5-4845-9cb2-eff69dae9d9f]_front" [MaterialName:0x03 (Private)]), Mesh from: Me (mesh group: [UNK: MeshGroup:0x01 (Private)]))
0001 : 0007 : 00 : FFFD : FFFD : 01000000000000000000000000000000
[prim 0x0007] Refresh (stack object's graphic)
When you switch back to the normal material though, I am not sure if it will have lost any recolour applied to it and be back to default.
"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)