Android development dragShadowBuilder and OnDragListener usage explanation

Foreword To implement View dragging in Android, you do not need to rewrite OnTouchListener yourself. Android has provided DragShadowBuilder and OnDragListener to easily realize such needs. The principle of DragShadowBuilder actually copies an image independent of the current app process for dragging. DragShadowBuilder can normally implement the drag and drop function within the App or […]

High-performance Shader based on Blinn-Phong, supporting shadows and environment reflections

Introduction: Sun Ermiao, a prolific member of the community, today brings you a complete set of traditional lighting model Shader, which integrates the lighting, shadow and environmental reflection capabilities of Cocos Creator, allowing you to freely trade off between rendering effects and performance. Text begins The 3D rendering function of the Cocos Creator engine has […]

echarts double broken line with shadow

sample graph Through parent to child, the data format is component code <template> <div class=”rowBarChart” :id=”id”></div> </template> <script> import * as echarts from “echarts”; export default {<!– –> props: {<!– –> id: {<!– –> type: String, default: “”, }, data: {<!– –> type: Object, default: {<!– –>}, }, }, watch: {<!– –> data: {<!– –> […]

Global Illumination_Exponential Variance Shadow Maps(EVSM)

In recent projects, it is necessary to integrate high-quality shadows (efficiency, effect). Because the project is acyclic rendering, CSM cannot be used. However, in dynamic modeling, scenes need to be quickly added, deleted, and modified, and shadows must be regenerated. However, the simple SM + PCF cannot be used before. To meet the requirements of […]

Rounded borders, shadows, image borders, outlines, box-sizing

border-radius@3 rounded border Property description: Set or get the rounded border of the object, composite property Syntax Template: border-radius: [ <length> | <percentage> ]{<!– –>1,4} [ / [ <length> | <percentage> ]{<!– –>1,4 } ]? Default: Set per individual property Attribute value description: <length>: Use the length value to set the fillet radius length of […]

Use of Shadow plug-in framework

Author: CCtomorrow Description Recently, the project wants to do dynamic module upgrades, so I learned about the plug-in framework Shadow . The top issue of the official website of the shadow framework contains a lot of articles about the analysis of the framework. If you want to understand this framework, this is a must-see. Here […]