/** * File: MedialMolding.cga * Created: 4 Jan 2018 12:44:27 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" //Medial Molding FrontMedialMolding--> extrude(face.normal, 0.1) comp(f){top:MedMoldFront | world.up:MedMoldTop | world.down:MedMoldBottom} SideMedialMolding--> extrude(face.normal, 0.1) comp(f){top:MedMoldFront | world.up:MedMoldTop | world.down:MedMoldBottom | side:MedMoldExtension} MedMoldFront--> color(0,0,0) setupProjection(0, scope.xy, 0.1, 0.1) projectUV(0) texture(side_texture) MedMoldSide--> color(1,0,0) setupProjection(0, scope.xy, 0.1, 0.1) projectUV(0) texture(side_texture) MedMoldBottom--> color(0,1,0) setupProjection(0, scope.xz, 0.1, 0.1) projectUV(0) texture(side_texture) MedMoldTop--> color(0,0,1) setupProjection(0, scope.xz, 0.1, 0.1) projectUV(0) texture(side_texture) MedMoldExtension--> extrude(face.normal,0.1) comp(f){top:MedMoldFront | back:MedMoldFront | world.up:MedMoldTop | world.down:MedMoldBottom}