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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -