Description
UPDATE: Back-ported backface culling. (hohoho) The code includes lots of unrolled loops and duplicated code to save doing things twice or with excessive calculation, so the code is pretty messy. Since this is affine texture mapping, the texturing will look funky when used on perspective transforms (you can see this on the first Playstation). This is the simplest form of texture mapping though, so it makes sense to implement this first. As you can see, this is way too slow to be practical. The framerate could be increased a lot by doing backface culling, which I might copy over from my racetrack project. I'm going to try this on a more advanced model, but it'll probably be a a like render instead of realtime. Credit to Mojang for the grass block texture from Minecraft.
Instructions
Affine Texture Mapping in Scratch. Adjust the distance slider (closer is slower) and Poly Resolution slider. I use the same texture converter as with the Earth Shader: http://dl.dropbox.com/u/12239448/ScratchTexture/index.html Model of Link Imported: http://scratch.mit.edu/projects/10541079/
Project Details
- Visibility
- Visible
- Comments
- Enabled
More Cool Projects
-

Mashupbox V2.5 but 5 polos replaces the ones in this mod
by OzzieTheGamerDude
-

Beat up BenjixScarlett: Weird Edition
by happyharperthebest
-

AY: In Four Corners Deluxe! Remastered (R0|P7) remix-5
by clanito12
-

Blackhole Simulator Fun
by aaawinever
-

Pentominoes band: Freeplay Mode
by PiNBlockBasherFan
-

BFDI Dictionary!
by LPSandOdin
-

HAPPY NEW YEAR 2026
by Shadow_06735
-

Part 113C - 22,000s Jumpscares
by Jharring2025_24
-

Numberblocks Generator remix
by OrensHotdog
-

The Sunny Bunnies as MouseHeadz
by Pinkflower_2014
-

Turn-Based Battle!
by Thepuzzlegame
-

Spiffy Pictures.EXE Buttons V18
by kagel
-

kScratch-T99 Animations (MGM logo parody) Voiceover
by AlkinBoy123
-

Colorful Numbers 1 to 1 Million Part 16/100 (150001 to 160000)
by cs4566078
-

Endless alphabet C-3 - CLUMSY remix
by zandertb
-

fidget spinner assignment
by ________________fars
-

[Level 23] Appel New Levels #3
by TanSleepingWolf
-

Evil S Gets Grounded by Substitute Teacher (Reuploaded)
by evp3ralta
-

Rare DVD Closing #9 On "David's Pack: The Compete First Season"
by davidthinksaboutyou2
-

Paper Minecraft v1.20 (Minecraft 2D)
by Leyin14
-

Talking Edward
by ImFlashed
-

Deltashuffle - Emo Noelle lol
by boiboiboib024
-

PvZ china but you got the new phone but i added more
by Buddygoeswest2
-

Sonic Mania 2 Menu (v0.1) remix
by sonicguy72