#VRML_SIM R2025a utf8 # license: Apache License 2.0 # license url: https://www.apache.org/licenses/LICENSE-2.0 # documentation url: https://webots.cloud/run?url=https://github.com/cyberbotics/webots/blob/released/projects/appearances/protos/Rubber.proto # keywords: appearance/rubber # A rubber material. # The type of rubber can be set using the `type` field. # template language: javascript PROTO Rubber [ field SFString{"flat", "dotted"} type "flat" # Defines the rubber type. field SFColor colorOverride 1 1 1 # Defines the color to be multiplied with the texture color. field SFNode textureTransform NULL # Defines an optional 2d texture transform. field SFFloat IBLStrength 1 # Defines the strength of ambient lighting from the Background node. ] { PBRAppearance { baseColor IS colorOverride baseColorMap ImageTexture { url [ %<= '"textures/rubber/' + fields.type.value + '_rubber_base_color.jpg"' >% ] } roughnessMap ImageTexture { url [ %<= '"textures/rubber/' + fields.type.value + '_rubber_roughness.jpg"' >% ] } metalness 0 normalMap ImageTexture { url [ %<= '"textures/rubber/' + fields.type.value + '_rubber_normal.jpg"' >% ] } IBLStrength IS IBLStrength occlusionMap ImageTexture { url [ %<= '"textures/rubber/' + fields.type.value + '_rubber_occlusion.jpg"' >% ] } textureTransform IS textureTransform } }