Home
last modified time | relevance | path

Searched refs:xScale (Results 1 – 13 of 13) sorted by relevance

/external/jmonkeyengine/engine/src/core-effects/Common/MatDefs/Post/
DDepthOfField.frag65 float xScale = m_XScale;
69 sum += texture2D( m_Texture, vec2(x - 2.0 * xScale, y - 2.0 * yScale) );
70 sum += texture2D( m_Texture, vec2(x - 0.0 * xScale, y - 2.0 * yScale) );
71 sum += texture2D( m_Texture, vec2(x + 2.0 * xScale, y - 2.0 * yScale) );
72 sum += texture2D( m_Texture, vec2(x - 1.0 * xScale, y - 1.0 * yScale) );
73 sum += texture2D( m_Texture, vec2(x + 1.0 * xScale, y - 1.0 * yScale) );
74 sum += texture2D( m_Texture, vec2(x - 2.0 * xScale, y - 0.0 * yScale) );
75 sum += texture2D( m_Texture, vec2(x + 2.0 * xScale, y - 0.0 * yScale) );
76 sum += texture2D( m_Texture, vec2(x - 1.0 * xScale, y + 1.0 * yScale) );
77 sum += texture2D( m_Texture, vec2(x + 1.0 * xScale, y + 1.0 * yScale) );
[all …]
/external/jmonkeyengine/engine/src/core-effects/Common/MatDefs/SSAO/
DssaoBlur.frag68 float xScale = m_XScale;
75 vec2 sample = vec2(x - 2.0 * xScale, y - 2.0 * yScale);
81 sample = vec2(x - 0.0 * xScale, y - 2.0 * yScale);
87 sample = vec2(x + 2.0 * xScale, y - 2.0 * yScale);
93 sample = vec2(x - 1.0 * xScale, y - 1.0 * yScale);
99 sample = vec2(x + 1.0 * xScale, y - 1.0 * yScale);
105 sample = vec2(x - 2.0 * xScale, y - 0.0 * yScale);
111 sample = vec2(x + 2.0 * xScale, y - 0.0 * yScale);
117 sample = vec2(x - 1.0 * xScale, y + 1.0 * yScale);
123 sample = vec2(x + 1.0 * xScale, y + 1.0 * yScale);
[all …]
DssaoBlur15.frag69 float xScale = m_XScale;
76 vec2 sample = vec2(x - 2.0 * xScale, y - 2.0 * yScale);
82 sample = vec2(x - 0.0 * xScale, y - 2.0 * yScale);
88 sample = vec2(x + 2.0 * xScale, y - 2.0 * yScale);
94 sample = vec2(x - 1.0 * xScale, y - 1.0 * yScale);
100 sample = vec2(x + 1.0 * xScale, y - 1.0 * yScale);
106 sample = vec2(x - 2.0 * xScale, y - 0.0 * yScale);
112 sample = vec2(x + 2.0 * xScale, y - 0.0 * yScale);
118 sample = vec2(x - 1.0 * xScale, y + 1.0 * yScale);
124 sample = vec2(x + 1.0 * xScale, y + 1.0 * yScale);
[all …]
/external/jmonkeyengine/engine/src/core-effects/com/jme3/post/filters/
DDepthOfFieldFilter.java54 private float xScale; field in DepthOfFieldFilter
83 xScale = 1.0f / w; in initFilter()
86 material.setFloat("XScale", blurScale * xScale); in initFilter()
146 material.setFloat("XScale", blurScale * xScale); in setBlurScale()
/external/skia/tests/
DSkResourceCacheTest.cpp21 SkScalar xScale, in is_in_scaled_image_cache() argument
24 float roundedImageWidth = SkScalarRoundToScalar(orig.width() * xScale); in is_in_scaled_image_cache()
36 SkScalar xScale = SkIntToScalar(kScale); in test_scaled_image_cache_usage() local
37 SkScalar yScale = xScale / 2; in test_scaled_image_cache_usage()
38 SkScalar xScaledSize = SkIntToScalar(kBitmapSize) * xScale; in test_scaled_image_cache_usage()
48 return is_in_scaled_image_cache(bitmap, xScale, yScale); in test_scaled_image_cache_usage()
DRoundRectTest.cpp597 SkScalar xScale = SkIntToScalar(3); in test_transform_helper() local
600 matrix.setScaleX(xScale); in test_transform_helper()
608 SkScalarMul(orig.radii((SkRRect::Corner) i).fX, xScale))); in test_transform_helper()
613 SkScalarMul(orig.rect().width(), xScale))); in test_transform_helper()
617 SkScalarMul(orig.rect().left(), xScale))); in test_transform_helper()
/external/skia/src/core/
DSkRRect.cpp411 SkScalar xScale = matrix.getScaleX(); in transform() local
412 const bool flipX = xScale < 0; in transform()
414 xScale = -xScale; in transform()
424 dst->fRadii[i].fX = SkScalarMul(fRadii[i].fX, xScale); in transform()
/external/skia/src/effects/
DSkGpuBlurUtils.cpp24 static void scale_rect(SkRect* rect, float xScale, float yScale) { in scale_rect() argument
25 rect->fLeft = SkScalarMul(rect->fLeft, xScale); in scale_rect()
27 rect->fRight = SkScalarMul(rect->fRight, xScale); in scale_rect()
/external/jmonkeyengine/engine/src/core-effects/com/jme3/post/ssao/
DSSAOFilter.java177 float xScale = 1.0f / w; in initFilter() local
181 material.setFloat("XScale", blurScale * xScale); in initFilter()
/external/deqp/modules/gles3/functional/
Des3fShaderDerivateTests.cpp1054 const tcu::Vec4 xScale = tcu::Vec4(1.0f, 0.0f, 0.5f, -0.5f); in verify() local
1062 const tcu::Vec4 scale = isX ? xScale : yScale; in verify()
1121 const tcu::Vec4 dx = ((m_coordMax - m_coordMin) / w) * xScale; in verify()
1124 …u::Vec4 dxThreshold = getDerivateThreshold(m_precision, m_coordMin*xScale, m_coordMax*xScale, dx); in verify()
1346 const tcu::Vec4 xScale = tcu::Vec4(1.0f, 0.0f, 0.5f, -0.5f); in verify() local
1357 const tcu::Vec4 scale = isX ? xScale : yScale; in verify()
1410 const tcu::Vec4 dx = ((m_texValueMax - m_texValueMin) / w) * xScale; in verify()
1413 …c4 dxThreshold = getDerivateThreshold(m_precision, m_texValueMin*xScale, m_texValueMax*xScale, dx); in verify()
/external/skia/src/utils/debugger/
DSkDrawCommand.cpp121 SkScalar xScale = SkIntToScalar(size.fWidth-2) / input.width(); in render_bitmap() local
127 xScale *= input.width() / (float) input.height(); in render_bitmap()
131 xScale * input.width(), in render_bitmap()
138 SkRect r = SkRect::MakeLTRB(srcRect->fLeft * xScale + SK_Scalar1, in render_bitmap()
140 srcRect->fRight * xScale + SK_Scalar1, in render_bitmap()
/external/chromium-trace/trace-viewer/tracing/third_party/gl-matrix/src/gl-matrix/
Dmat4.js1115 xScale = 2.0 / (leftTan + rightTan),
1118 out[0] = xScale;
1126 out[8] = -((leftTan - rightTan) * xScale * 0.5);
/external/chromium-trace/trace-viewer/tracing/third_party/gl-matrix/dist/
Dgl-matrix.js2500 xScale = 2.0 / (leftTan + rightTan),
2503 out[0] = xScale;
2511 out[8] = -((leftTan - rightTan) * xScale * 0.5);