home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 4
/
DATAFILE_PDCD4.iso
/
utilities
/
utilst
/
texturgdn
/
Textures
/
WWW
/
SandyFB
< prev
next >
Wrap
Text File
|
1996-09-22
|
1KB
|
45 lines
StartColourDefinition
Dithering(&1)
LinearField(&FFFF,&B000)
OneDimensionalStoreBufferTwo
LinearField(&FFFF,&C000)
OneDimensionalStoreBufferOne
LinearField(&FFFF,&E000)
CreateColoursUsingRGBData
EndColourDefinition
|
| Turbulence demonstartion
|
Seed(&8C22)
Phase(&2F)
NoiseToBeFiltered(&FEEB)
CreateOneDimensionalFilter(QuickNoise(&8014,&507))
OneDimensionalTransform
HorizontalWaves(Overwrite)
VerticalShear(&2,Overwrite)
CreateOneDimensionalFilter(QuickNoise(&FFFF,&480))
OneDimensionalTransform
HorizontalWaves(Maximise)
|SimpleAddition)
VerticalShear(&FFFF,Overwrite)
For(&E)
CreateOneDimensionalFilter(FractalNoise(&FFFF,&72))
SmoothOneDimensionalTransform
HorizontalDistortion(Overwrite)
CreateOneDimensionalFilter(FractalNoise(&FFFF,&6A))
SmoothOneDimensionalTransform
VerticalDistortion(Overwrite)
Next
TwoDimensionalEqualization
If IsLessThanOrEqualTo(LogBitsPerPixel,&2) Then Dithering(&4482) Else If IsEqualTo(LogBitsPerPixel,&3) Then Dithering(&1F68) Else Dithering(&0)
| Due to the following "resize" code the sprite still tessellates seamlessly despite its resize.
TwoDimensionalProcess(&0,&0,&0,&0,TwoDimensionalPoint(PartlyScaledMultiply(&413A,LogicalShiftRight(X,&5)),PartlyScaledMultiply(&416D,LogicalShiftRight(Y,&5))),Overwrite)
TwoDimensionalShift(&8FAE,&659E,Overwrite)
MakeSprite
TruncateSpriteHorizontally(&0,&CCCC)
TruncateSpriteVertically(&0,&CCCC)
Checksum(&44F)
End