/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #version 130 uniform sampler2D slideTexture; varying float v_isShadow; varying vec2 v_texturePosition; varying vec3 v_normal; void main() { vec3 lightVector = vec3(0.0, 0.0, 1.0); float light = max(dot(lightVector, v_normal), 0.0); vec4 fragment = texture2D(slideTexture, v_texturePosition); vec4 black = vec4(0.0, 0.0, 0.0, fragment.a); fragment = mix(black, fragment, light); if (v_isShadow > 0.5) { if (v_texturePosition.y > 1.0 - 0.3) gl_FragColor = mix(fragment, vec4(0.0, 0.0, 0.0, 0.0), (1.0 - v_texturePosition.y) / 0.3); else discard; } else { gl_FragColor = fragment; } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ tro/capgemini/cg-4.1'>distro/capgemini/cg-4.1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/sd/source/ui/tools
AgeCommit message (Expand)Author
2017-04-25tools: svstream.hxx needs only errcode.hxx & not errinf.hxxChris Sherlock
2017-03-31tdf#82580 tools: rename Rectangle to tools::RectangleMiklos Vajna
2017-02-28new loplugin unoanyNoel Grandin
2017-02-21loplugin:subtlezeroinit: sdStephan Bergmann
2017-01-26Remove dynamic exception specificationsStephan Bergmann
2017-01-23Change all Idle* LINKs to be Timer*Jan-Marek Glogowski
2017-01-13tdf#105188 sd: fix shutdown crash after accessing master pagesMichael Stahl
2016-12-15teach sallogareas plugin to catch inconsistenciesNoel Grandin
2016-12-12OSL_TRACE->SAL in sd..sdextNoel Grandin
2016-12-12tdf#104046 - Slides in the slide pane don't update in realtimeNoel Grandin
2016-12-08convert SFX_HINT to scoped enumNoel Grandin
2016-12-05loplugin:unnecessaryoverride (dtors) in sdStephan Bergmann
2016-11-21convert inventorId to scoped enumNoel Grandin
2016-11-03remove pParentFrame from SfxFrameNoel Grandin
2016-10-28loplugin:expandablemethods in sdNoel Grandin
2016-10-20loplugin:expandablemethodds in scaddins..sdextNoel Grandin
2016-10-12convert IDET flags to typed_flagsNoel Grandin
2016-10-12convert EID constants to typed_flagsNoel Grandin
2016-10-05convert MapUnit to scoped enumNoel Grandin
2016-10-05Remove _TYPED suffix from tools/link.hxx macrosStephan Bergmann
2016-09-23perf: eliminate SfxSimpleHint and move to SfxHint, tdf#87101 relatedEike Rathke