ios - SCNFloor's firstMaterial's diffuse's content property as gradient -



ios - SCNFloor's firstMaterial's diffuse's content property as gradient -

i have scnfloor

scnfloor *floor = [scnfloor floor];

and want create uicolor gradient.

uicolor *mygradient = ?;

and want alter property gradient.

floor.firstmaterial.diffuse.contents = mygradient;

is there way can this?

when seek add together image

floor.firstmaterial.diffuse.contents = @"mygradient";

it gets repeated, undesirable result.

when seek clamping edged image

floor.firstmaterial.diffuse.wraps = scnwrapmodeclamp; floor.firstmaterial.diffuse.wrapt = scnwrapmodeclamp;

i solid color that's contained in gradient.

thank time!

ios objective-c xcode scenekit

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -