Home
last modified time | relevance | path

Searched refs:heightScale (Results 1 – 12 of 12) sorted by relevance

/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/
DImageBasedHeightMap.java74 public ImageBasedHeightMap(Image colorImage, float heightScale) { in ImageBasedHeightMap() argument
76 this.heightScale = heightScale; in ImageBasedHeightMap()
116 … heightData[index++] = getHeightAtPostion(buf, colorImage, baseIndex, colorStore)*heightScale; in load()
121 … heightData[index++] = getHeightAtPostion(buf, colorImage, baseIndex, colorStore)*heightScale; in load()
130 … heightData[index++] = getHeightAtPostion(buf, colorImage, baseIndex, colorStore)*heightScale; in load()
135 … heightData[index++] = getHeightAtPostion(buf, colorImage, baseIndex, colorStore)*heightScale; in load()
164 return byte2float(buf.get())*255*heightScale; in getHeightAtPostion()
168 return (sbuf.get() & 0xFFFF) / 65535f * 255f * heightScale; in getHeightAtPostion()
DAbstractHeightMap.java62 protected float heightScale = 1.0f; field in AbstractHeightMap
85 heightScale = scale; in setHeightScale()
167 return ((heightData[x + (z * size)]) * heightScale); in getScaledHeightAtPoint()
224 hm[i] = heightScale * heightData[i]; in getScaledHeightMap()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/grid/
DFractalTileLoader.java45 private final float heightScale; field in FractalTileLoader
47 public FractalTileLoader(Basis base, float heightScale) { in FractalTileLoader() argument
49 this.heightScale = heightScale; in FractalTileLoader()
59 arr[i] = arr[i] * this.heightScale; in getHeightMapAt()
DImageTileLoader.java31 private float heightScale = 1; field in ImageTileLoader
52 public void setHeightScale(float heightScale) { in setHeightScale() argument
53 this.heightScale = heightScale; in setHeightScale()
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/collision/shapes/
DHeightfieldCollisionShape.java36 protected float heightScale; field in HeightfieldCollisionShape
57 this.heightScale = 1;//don't change away from 1, we use worldScale instead to scale in createCollisionHeightfield()
106 …objectId = createShape(heightStickWidth, heightStickLength, bbuf, heightScale, minHeight, maxHeigh… in createShape()
112 …htStickWidth, int heightStickLength, ByteBuffer heightfieldData, float heightScale, float minHeigh… in createShape() argument
124 capsule.write(heightScale, "heightScale", 0); in write()
137 heightScale = capsule.readFloat("heightScale", 0); in read()
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/collision/shapes/
DHeightfieldCollisionShape.java36 protected float heightScale; field in HeightfieldCollisionShape
56 this.heightScale = 1;//don't change away from 1, we use worldScale instead to scale in createCollisionHeightfield()
94 …ieldTerrainShape(heightStickWidth, heightStickLength, heightfieldData, heightScale, minHeight, max… in createShape()
111 capsule.write(heightScale, "heightScale", 0); in write()
124 heightScale = capsule.readFloat("heightScale", 0); in read()
/external/jmonkeyengine/engine/src/bullet-native/
Dcom_jme3_bullet_collision_shapes_HeightfieldCollisionShape.cpp50 …ghtStickWidth, jint heightStickLength, jobject heightfieldData, jfloat heightScale, jfloat minHeig… in Java_com_jme3_bullet_collision_shapes_HeightfieldCollisionShape_createShape() argument
53 …w btHeightfieldTerrainShape(heightStickWidth, heightStickLength, data, heightScale, minHeight, max… in Java_com_jme3_bullet_collision_shapes_HeightfieldCollisionShape_createShape()
/external/jmonkeyengine/engine/src/core-data/Common/MatDefs/Light/
DGBuf.frag45 float heightScale = 0.05;
46 float heightBias = heightScale * -0.5;
47 height = (height * heightScale + heightBias);
/external/jmonkeyengine/engine/src/core-data/Common/ShaderLib/
DParallax.glsllib72 float heightScale = parallaxScale;
73 float heightBias = heightScale* -0.6;
75 h = (h * heightScale + heightBias) * normView.z;
/external/webkit/Source/WebCore/platform/graphics/
DFloatRect.cpp202 float heightScale = destRect.height() / srcRect.height(); in mapRect() local
204 destRect.y() + (r.y() - srcRect.y()) * heightScale, in mapRect()
205 r.width() * widthScale, r.height() * heightScale); in mapRect()
/external/webkit/Source/WebCore/html/
DImageDocument.cpp242 float heightScale = (float)windowSize.height() / imageSize.height(); in scale() local
244 return min(widthScale, heightScale); in scale()
/external/webkit/Source/WebCore/platform/graphics/android/context/
DPlatformGraphicsContextRecording.cpp784 float heightScale = dst.height() == 0 ? 1 : bitmap.height() / dst.height(); in drawBitmapRect() local
785 m_maxZoomScale = std::max(m_maxZoomScale, std::max(widthScale, heightScale)); in drawBitmapRect()