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
Post a Comment