Home
last modified time | relevance | path

Searched refs:material (Results 1 – 25 of 419) sorted by relevance

12345678910>>...17

/external/jmonkeyengine/engine/src/core-effects/com/jme3/post/filters/
DCrossHatchFilter.java35 import com.jme3.material.Material;
91 material = new Material(manager, "Common/MatDefs/Post/CrossHatch.j3md"); in initFilter()
92 material.setColor("LineColor", lineColor); in initFilter()
93 material.setColor("PaperColor", paperColor); in initFilter()
95 material.setFloat("ColorInfluenceLine", colorInfluenceLine); in initFilter()
96 material.setFloat("ColorInfluencePaper", colorInfluencePaper); in initFilter()
98 material.setFloat("FillValue", fillValue); in initFilter()
100 material.setFloat("Luminance1", luminance1); in initFilter()
101 material.setFloat("Luminance2", luminance2); in initFilter()
102 material.setFloat("Luminance3", luminance3); in initFilter()
[all …]
DCartoonEdgeFilter.java35 import com.jme3.material.Material;
85 material.setTexture("NormalsTexture", normalPass.getRenderedTexture()); in getMaterial()
86 return material; in getMaterial()
93 material = new Material(manager, "Common/MatDefs/Post/CartoonEdge.j3md"); in initFilter()
94 material.setFloat("EdgeWidth", edgeWidth); in initFilter()
95 material.setFloat("EdgeIntensity", edgeIntensity); in initFilter()
96 material.setFloat("NormalThreshold", normalThreshold); in initFilter()
97 material.setFloat("DepthThreshold", depthThreshold); in initFilter()
98 material.setFloat("NormalSensitivity", normalSensitivity); in initFilter()
99 material.setFloat("DepthSensitivity", depthSensitivity); in initFilter()
[all …]
DFXAAFilter.java4 import com.jme3.material.Material;
30 material = new Material(manager, "Common/MatDefs/Post/FXAA.j3md"); in initFilter()
31 material.setFloat("SubPixelShift", subPixelShift); in initFilter()
32 material.setFloat("VxOffset", vxOffset); in initFilter()
33 material.setFloat("SpanMax", spanMax); in initFilter()
34 material.setFloat("ReduceMul", reduceMul); in initFilter()
39 return material; in getMaterial()
44 if (material != null) { in setSpanMax()
45 material.setFloat("SpanMax", this.spanMax); in setSpanMax()
56 if (material != null) { in setSubPixelShift()
[all …]
DDepthOfFieldFilter.java35 import com.jme3.material.Material;
72 return material; in getMaterial()
78 material = new Material(assets, "Common/MatDefs/Post/DepthOfField.j3md"); in initFilter()
79 material.setFloat("FocusDistance", focusDistance); in initFilter()
80 material.setFloat("FocusRange", focusRange); in initFilter()
86 material.setFloat("XScale", blurScale * xScale); in initFilter()
87 material.setFloat("YScale", blurScale * yScale); in initFilter()
96 if (material != null) { in setFocusDistance()
97 material.setFloat("FocusDistance", focusDistance); in setFocusDistance()
117 if (material != null) { in setFocusRange()
[all …]
DPosterizationFilter.java35 import com.jme3.material.Material;
86 material = new Material(manager, "Common/MatDefs/Post/Posterization.j3md"); in initFilter()
87 material.setInt("NumColors", numColors); in initFilter()
88 material.setFloat("Gamma", gamma); in initFilter()
89 material.setFloat("Strength", strength); in initFilter()
94 return material; in getMaterial()
102 if (material != null) { in setNumColors()
103 material.setInt("NumColors", numColors); in setNumColors()
112 if (material != null) { in setGamma()
113 material.setFloat("Gamma", gamma); in setGamma()
[all …]
DFogFilter.java39 import com.jme3.material.Material;
83 material = new Material(manager, "Common/MatDefs/Post/Fog.j3md"); in initFilter()
84 material.setColor("FogColor", fogColor); in initFilter()
85 material.setFloat("FogDensity", fogDensity); in initFilter()
86 material.setFloat("FogDistance", fogDistance); in initFilter()
92 return material; in getMaterial()
109 if (material != null) { in setFogColor()
110 material.setColor("FogColor", fogColor); in setFogColor()
128 if (material != null) { in setFogDensity()
129 material.setFloat("FogDensity", fogDensity); in setFogDensity()
[all …]
DGammaCorrectionFilter.java4 import com.jme3.material.Material;
34 return material; in getMaterial()
41 material = new Material(manager, in initFilter()
43 material.setFloat("gamma", gamma); in initFilter()
44 material.setBoolean("computeLuma", computeLuma); in initFilter()
58 if (material != null) in setGamma()
60 material.setFloat("gamma", gamma); in setGamma()
72 if (material != null) in setComputeLuma()
74 material.setBoolean("computeLuma", computeLuma); in setComputeLuma()
DLightScatteringFilter.java39 import com.jme3.material.Material;
89 material.setVector3("LightPosition", screenLightPos); in getMaterial()
90 material.setInt("NbSamples", nbSamples); in getMaterial()
91 material.setFloat("BlurStart", blurStart); in getMaterial()
92 material.setFloat("BlurWidth", blurWidth); in getMaterial()
93 material.setFloat("LightDensity", innerLightDensity); in getMaterial()
94 material.setBoolean("Display", display); in getMaterial()
95 return material; in getMaterial()
131 material = new Material(manager, "Common/MatDefs/Post/LightScattering.j3md");
DRadialBlurFilter.java39 import com.jme3.material.Material;
77 material.setFloat("SampleDist", sampleDist); in getMaterial()
78 material.setFloat("SampleStrength", sampleStrength); in getMaterial()
79 material.setParam("Samples", VarType.FloatArray, samples); in getMaterial()
81 return material; in getMaterial()
138 material = new Material(manager, "Common/MatDefs/Blur/RadialBlur.j3md"); in initFilter()
DFadeFilter.java39 import com.jme3.material.Material;
77 material.setFloat("Value", value); in getMaterial()
78 return material; in getMaterial()
83 material = new Material(manager, "Common/MatDefs/Post/Fade.j3md"); in initFilter()
173 if (material != null) { in setValue()
174 material.setFloat("Value", value); in setValue()
DTranslucentBucketFilter.java9 import com.jme3.material.Material;
51 material = new Material(manager, "Common/MatDefs/Post/Overlay.j3md"); in initFilter()
52 material.setColor("Color", ColorRGBA.White); in initFilter()
54 material.setTexture("Texture", tex); in initFilter()
56 material.setInt("NumSamples", tex.getImage().getMultiSamples()); in initFilter()
58 material.clearParam("NumSamples"); in initFilter()
118 return material; in getMaterial()
/external/jmonkeyengine/engine/src/core-effects/com/jme3/water/
DWaterFilter.java41 import com.jme3.material.Material;
140 material.setFloat("Time", time); in preFrame()
143 material.setMatrix4("TextureProjMatrix", textureProjMatrix); in preFrame()
144 material.setVector3("CameraPosition", sceneCam.getLocation()); in preFrame()
145material.setMatrix4("ViewProjectionMatrixInverse", sceneCam.getViewProjectionMatrix().invert()); in preFrame()
147 material.setFloat("WaterHeight", waterHeight); in preFrame()
206 return material; in getMaterial()
263 material = new Material(manager, "Common/MatDefs/Water/Water.j3md"); in initFilter()
264 material.setTexture("HeightMap", heightTexture); in initFilter()
265 material.setTexture("CausticsMap", causticsTexture); in initFilter()
[all …]
DSimpleWaterProcessor.java35 import com.jme3.material.Material;
112 protected Material material; field in SimpleWaterProcessor
133 material = new Material(manager, "Common/MatDefs/Water/SimpleWater.j3md"); in SimpleWaterProcessor()
134 material.setFloat("waterDepth", waterDepth); in SimpleWaterProcessor()
135 material.setFloat("waterTransparency", waterTransparency / 10); in SimpleWaterProcessor()
136 material.setColor("waterColor", ColorRGBA.White); in SimpleWaterProcessor()
137 material.setVector3("lightPos", new Vector3f(1, -1, 1)); in SimpleWaterProcessor()
139 material.setColor("distortionScale", new ColorRGBA(0.2f, 0.2f, 0.2f, 0.2f)); in SimpleWaterProcessor()
140 material.setColor("distortionMix", new ColorRGBA(0.5f, 0.5f, 0.5f, 0.5f)); in SimpleWaterProcessor()
141 material.setColor("texScale", new ColorRGBA(1.0f, 1.0f, 1.0f, 1.0f)); in SimpleWaterProcessor()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/utils/
DModelBuilder.java133 public void part (final MeshPart meshpart, final Material material) { in part() argument
135 node.parts.add(new NodePart(meshpart, material)); in part()
142 …nal String id, final Mesh mesh, int primitiveType, int offset, int size, final Material material) { in part() argument
149 part(meshPart, material); in part()
157 …public MeshPart part (final String id, final Mesh mesh, int primitiveType, final Material material in part() argument
158 return part(id, mesh, primitiveType, 0, mesh.getNumIndices(), material); in part()
166 … (final String id, int primitiveType, final VertexAttributes attributes, final Material material) { in part() argument
168 part(builder.part(id, primitiveType), material); in part() local
179 …Builder part (final String id, int primitiveType, final long attributes, final Material material) { in part() argument
180 return part(id, primitiveType, MeshBuilder.createAttributes(attributes), material); in part()
[all …]
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/scene/plugins/
DMTLLoader.java36 import com.jme3.material.Material;
37 import com.jme3.material.MaterialList;
38 import com.jme3.material.RenderState.BlendMode;
127 Material material; in createMaterial() local
134 material = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); in createMaterial()
135 material.setColor("Color", diffuse.clone()); in createMaterial()
136 material.setTexture("ColorMap", diffuseMap); in createMaterial()
139 material = new Material(assetManager, "Common/MatDefs/Light/Lighting.j3md"); in createMaterial()
140 material.setBoolean("UseMaterialColors", true); in createMaterial()
141 material.setColor("Ambient", ambient.clone()); in createMaterial()
[all …]
/external/jmonkeyengine/engine/src/android/jme3test/android/
DSimpleTexturedTest.java14 import com.jme3.material.Material;
57 Material material = null; in simpleInitApp() local
62 material = new Material(assetManager, "Common/MatDefs/Light/Lighting.j3md"); in simpleInitApp()
63 material.setBoolean("VertexLighting", true); in simpleInitApp()
64 material.setFloat("Shininess", 127); in simpleInitApp()
65 material.setBoolean("LowQuality", true); in simpleInitApp()
66 material.setTexture("DiffuseMap", texture); in simpleInitApp()
75 material = new Material(assetManager, "Common/MatDefs/Misc/SimpleTextured.j3md"); in simpleInitApp()
76 material.setTexture("ColorMap", texture); in simpleInitApp()
82 material = new Material(assetManager, "Common/MatDefs/Misc/SolidColor.j3md"); in simpleInitApp()
[all …]
/external/jmonkeyengine/engine/src/test/jme3test/bullet/
DPhysicsTestHelper.java18 import com.jme3.material.Material;
45 Material material = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); in createPhysicsTestWorld() local
46 material.setTexture("ColorMap", assetManager.loadTexture("Interface/Logo/Monkey.jpg")); in createPhysicsTestWorld()
50 floorGeometry.setMaterial(material); in createPhysicsTestWorld()
63 boxGeometry.setMaterial(material); in createPhysicsTestWorld()
74 sphereGeometry.setMaterial(material); in createPhysicsTestWorld()
87 Material material = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); in createPhysicsTestWorldSoccer() local
88 material.setTexture("ColorMap", assetManager.loadTexture("Interface/Logo/Monkey.jpg")); in createPhysicsTestWorldSoccer()
92 floorGeometry.setMaterial(material); in createPhysicsTestWorldSoccer()
105 ballGeometry.setMaterial(material); in createPhysicsTestWorldSoccer()
[all …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/materials/
DMaterialHelper.java35 import com.jme3.material.MatParam;
36 import com.jme3.material.MatParamTexture;
37 import com.jme3.material.Material;
38 import com.jme3.material.RenderState.BlendMode;
39 import com.jme3.material.RenderState.FaceCullMode;
301 public Material getNonTexturedMaterial(Material material, int imageType) { in getNonTexturedMaterial() argument
305 MatParamTexture matParamTexture = material.getTextureParam(textureParamName); in getNonTexturedMaterial()
311 return material; in getNonTexturedMaterial()
319 material.clearParam(textureParamName.getKey()); in getNonTexturedMaterial()
325 Material result = material.clone(); in getNonTexturedMaterial()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/scene/
DGeometry.java42 import com.jme3.material.Material;
69 protected Material material; field in Geometry
230 public void setMaterial(Material material) { in setMaterial() argument
234 this.material = material; in setMaterial()
245 return material; in getMaterial()
482 if (material != null) { in clone()
484 geomClone.material = material.clone(); in clone()
486 geomClone.material = material; in clone()
526 if (material != null) { in write()
527 oc.write(material.getAssetName(), "materialName", null); in write()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/model/
DNodePart.java33 public Material material; field in NodePart
51 public NodePart (final MeshPart meshPart, final Material material) { in NodePart() argument
53 this.material = material; in NodePart()
64 out.material = material; in setRenderable()
76 material = other.material; in set()
/external/jmonkeyengine/engine/src/core-effects/com/jme3/post/ssao/
DSSAOFilter.java39 import com.jme3.material.Material;
119 return material; in getMaterial()
163 material = new Material(manager, "Common/MatDefs/SSAO/ssaoBlur.j3md"); in initFilter()
164 material.setTexture("SSAOMap", ssaoPass.getRenderedTexture()); in initFilter()
171 material.setBoolean("UseAo", useAo); in initFilter()
172 material.setBoolean("UseOnlyAo", useOnlyAo); in initFilter()
174 material.setVector2("FrustumNearFar", frustumNearFar); in initFilter()
181 material.setFloat("XScale", blurScale * xScale); in initFilter()
182 material.setFloat("YScale", blurScale * yScale); in initFilter()
281 if (material != null) { in setUseAo()
[all …]
/external/jmonkeyengine/engine/src/ogre/com/jme3/scene/plugins/ogre/matext/
DMaterialExtensionLoader.java39 import com.jme3.material.Material;
40 import com.jme3.material.MaterialList;
65 private Material material; field in MaterialExtensionLoader
89 material.setTexture(jmeParamName, tex); in readExtendingMaterialStatement()
106 material = new Material(assetManager, matExt.getJmeMatDefName()); in readExtendingMaterial()
110 return material; in readExtendingMaterial()
126 Material material = readExtendingMaterial(statement); in load() local
127 list.put(matName, material); in load()
131 list.put(string, material); in load()
/external/jmonkeyengine/engine/src/test/jme3test/texture/
DTestTexture3DLoading.java9 import com.jme3.material.Material;
33 Material material = new Material(assetManager, "jme3test/texture/tex3DThumb.j3md"); in simpleInitApp() local
45 material.setFloat("InvDepth", 1f / 16f); in simpleInitApp()
46 material.setInt("Rows", rows); in simpleInitApp()
47 material.setTexture("Texture", t); in simpleInitApp()
48 geom.setMaterial(material); in simpleInitApp()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/
DMaterialTest.java51 Material material; field in MaterialTest
72 material = modelInstance.materials.get(0); in create()
111 if (!material.has(TextureAttribute.Diffuse)) in touchUp()
112 material.set(textureAttribute); in touchUp()
113 else if (!material.has(ColorAttribute.Diffuse)) in touchUp()
114 material.set(colorAttribute); in touchUp()
115 else if (!material.has(BlendingAttribute.Type)) in touchUp()
116 material.set(blendingAttribute); in touchUp()
118 material.clear(); in touchUp()
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/material/plugins/
DJ3MLoader.java33 package com.jme3.material.plugins;
36 import com.jme3.material.RenderState.BlendMode;
37 import com.jme3.material.RenderState.FaceCullMode;
38 import com.jme3.material.*;
39 import com.jme3.material.TechniqueDef.LightMode;
40 import com.jme3.material.TechniqueDef.ShadowMode;
65 private Material material; field in J3MLoader
272 MatParam p = material.getMaterialDef().getMaterialParam(name); in readValueParam()
279 material.setTextureParam(name, p.getVarType(), (Texture) valueObj); in readValueParam()
281 material.setParam(name, p.getVarType(), valueObj); in readValueParam()
[all …]

12345678910>>...17