Текстура!
У меня проблема!
Я создал текстуру:
Function GrassClipTex()
texture = CreateTexture(256, 256)
ClsColor 0, 0, 0
Cls
For i = 0 To 1000
Color 255, 255, 255
Plot Rand(256), Rand(256)
Next
CopyRect 1,1,256,256,0,0,0,TextureBuffer(texture)
Cls
Return texture
FreeTexture texture
End Function
как мне сделать, чтобы черный цвет в текстуре был прозрачен?
|