Wysłany: 2018-07-04, 13:36
AppleSir
Majster LUA
Wiek: 27 Na forum: 3045 dni Posty: 19
Nick w MP: Przybysz
Witam chcia?bym zamieni? obrazek: Sanitary Andreas na moj? teksturke ale nie wiem jak si? nazywa... engineApplyShaderToWorldTexture i tu nazwa shaderu.
mi chodzi o nazwe np mam tak w kodzie:
Za pomoc daje Zimne Piwko [code]
Kod:
addEventHandler ( "onClientResourceStart", resourceRoot,
function ( )
local texture = dxCreateTexture ( "images/vehiclepoldecals128.png", "dxt5" )
local shader = dxCreateShader ( "texture.fx" )
dxSetShaderValue ( shader, "gTexture", texture )
engineApplyShaderToWorldTexture ( shader, "vehiclepoldecals128" )
end
)
i w shader.fx
texture gTexture;
technique hello
{
pass P0
{
Texture[0] = gTexture;
}
}
Wysłany: 2018-07-04, 15:40
l3g3nd4
Mapper & Modeler
Wiek: 22 Na forum: 3399 dni Posty: 156
Nick w MP: l3g3nd4
Piwa : 602
Nie lepiej by?o by stworzy? pojazd, a p??niej na niego na?o?y? tekstur? ?
Nazwy tekstur znajdziesz tu klik
Shader.fx
texture gTexture ;
technique TexReplace
{
pass P0
{
Texture [ 0 ] = gTexture ;
}
}
Tekstura na poje?dzie:
local pojazd = createVehicle ( 552 , 0 , 0 , 3 , 0 , 0 , 0 )
shader = dxCreateShader ( 'shader.fx' , 0 , 500 )
terrain = dxCreateTexture ( "images/vehiclepoldecals128.png" )
dxSetShaderValue ( shader , 'gTexture' , terrain )
engineApplyShaderToWorldTexture ( shader , "vehiclepoldecals128" , pojazd )
Nie testowane, powinno dzia?a?.
Więcej szczegółów
Wystawiono 1 piw(a):AppleSir
Tagi: zamiana :: tekstu :: pojeździe :: unity :: truck
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: