/** * File: CorniceMolding.cga * Created: 4 Jan 2018 12:42:29 GMT * Author: nsorsen2 */ version "2017.0" import Platform: "Platform.cga" import BaseMolding: "BaseMolding.cga" import Building: "Building.cga" @Range(0,1,2,3,4) attr FIRST_Type = 4 // Textures side_texture = "assets/Texture/Bonampak_Red.jpg" top_texture = "assets/Texture/Bonampak_Red.jpg" ground_texture = "assets/Texture/green_01.jpg" dirt_texture = "assets/Texture/Sequoia_Bark_Diffuse.jpg" //Build cornice Molding FrontCorniceMolding--> extrude(face.normal, 0.1) comp(f){top:CornMoldFront | world.up:CornMoldTop | world.down:CornMoldBottom} SideCorniceMolding--> extrude(face.normal, 0.1) comp(f){top:CornMoldFront | world.up:CornMoldTop | world.down:CornMoldBottom | side:CornMoldExtension} CornMoldFront--> color(0,0,0) setupProjection(0, scope.xy, 0.1, 0.1) projectUV(0) texture(side_texture) CornMoldSide--> color(1,0,0) setupProjection(0, scope.xy, 0.1, 0.1) projectUV(0) texture(side_texture) CornMoldBottom--> color(0,1,0) setupProjection(0, scope.xz, 0.1, 0.1) projectUV(0) texture(side_texture) CornMoldTop--> color(0,0,1) setupProjection(0, scope.xz, 0.1, 0.1) projectUV(0) texture(side_texture) CornMoldExtension--> extrude(face.normal,0.1) comp(f){top:CornMoldFront | back:CornMoldFront | world.up:CornMoldTop | world.down:CornMoldBottom}